ng-bind on doesn't work</a></h1> </div> <div class="grid fw-wrap pb8 mb16 bb bc-black-075"> <div class="grid--cell ws-nowrap mr16 mb8" title="2016-01-12 19:07:53Z"> <span class="fc-light mr2">Asked</span> <time itemprop="dateCreated" datetime="2014-09-11T10:34:24.263" class="fromnow">Sep 11 '14 at 10:34</time> </div> <div class="grid--cell ws-nowrap mr16 mb8"> <span class="fc-light mr2">Active</span> <time class="fromnow" title="2015-10-24T10:57:33.620" datetime="2015-10-24T10:57:33.620">Oct 24 '15 at 10:57</a> </div> <div class="grid--cell ws-nowrap mb8" title="Viewed 2,006 times"> <span class="fc-light mr2">Viewed</span> 2,006 times </div> </div> <div id="mainbar" role="main" aria-label="questions and answers"> <div id="question" class="question" data-questionid="25785201" data-ownerid="1094611" data-score="7"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="25785201"> <button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"></path></svg></button> <div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="7">7</div> <button class="js-bookmark-btn s-btn s-btn__unset c-pointer py4"> <svg aria-hidden="true" class="svg-icon iconBookmark" width="18" height="18" viewBox="0 0 18 18"><path d="M6 1a2 2 0 00-2 2v14l5-4 5 4V3a2 2 0 00-2-2H6zm3.9 3.83h2.9l-2.35 1.7.9 2.77L9 7.59l-2.35 1.7.9-2.76-2.35-1.7h2.9L9 2.06l.9 2.77z"></path></svg> <div class="js-bookmark-count mt4" data-value=""></div> </button> </div> </div> <div class="postcell post-layout--right"> <div class="s-prose js-post-body" itemprop="text"><p>Using 1.3.0-rc1 (latest now).</p> <p>I tried:</p> <pre><code><title ng-bind="title"></title> <title>{{title}}</title> </code></pre> <p>But nothing.</p> <p>If I do <code>{{title}}</code> anywhere in <code><body></code> it works.</p> <p>I'm doing:</p> <pre><code>app.main.run(function($rootScope) { $rootScope.$on('$routeChangeSuccess', function(event, current, previous) { if (current.hasOwnProperty('$$route')) { $rootScope.title = current.$$route.title; } }); }); </code></pre> <p>I can see my <code>title</code> in the model. What's going on with the <code><title></code> tag?</p></div> <div class="mt24 mb12"> <div class="post-taglist grid gs4 gsy fd-column"> <div class="grid ps-relative"> <a href="../../questions/tagged/angularjs" class="post-tag js-gps-track" title="show questions tagged 'angularjs'" rel="tag">angularjs</a> <a href="../../questions/tagged/ng-bind" class="post-tag js-gps-track" title="show questions tagged 'ng-bind'" rel="tag">ng-bind</a> </div> </div> </div> <div class="mb0"> <div class="mt16 grid gs8 gsy fw-wrap jc-end ai-start pt4 mb16"> <div class="grid--cell mr16 fl1 w96"></div> <div class="post-signature owner grid--cell"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 11 '14 at 10:34">asked Sep 11 '14 at 10:34</time> <a href="../../users/1094611/syl" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1094611.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Syl" /> </a> <div class="s-user-card--info"> <a href="../../users/1094611/syl" class="s-user-card--link">Syl</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,232</li> <li class="s-award-bling s-award-bling__gold" title="8 gold badges">8</li> <li class="s-award-bling s-award-bling__silver" title="34 silver badges">34</li> <li class="s-award-bling s-award-bling__bronze" title="45 bronze badges">45</li> </ul> </div> </div> </div> </div> </div> </div> <div class="post-layout--right js-post-comments-component"> <div id="comments-25785201" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="25785201" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> <li id="comment-40327693" class="comment js-comment " data-comment-id="40327693" data-comment-owner-id="3891533" data-comment-score="10"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> <span title="number of 'useful comment' votes received" class="warm">10</span> </div> </div> <div class="comment-text js-comment-text-and-form"> <a name="comment40327693_25785201"></a> <div class="comment-body js-comment-edit-hide"> <span class="comment-copy">where did you define your app & controller? Make sure it's on the `` tag</span> – <a href="../../users/3891533/dieterg" title="16,118 reputation" class="comment-user ">Dieterg</a> <span class="comment-date" dir="ltr"><a class="comment-link" href="../../questions/25785201/ng-bind-on-title-doesn-t-work#comment40327693_25785201"><span title="2014-09-11T10:35:51.413 License: CC BY-SA 3.0" class="relativetime-clean">Sep 11 '14 at 10:35</span></a></span> </div> </div> </li> <li id="comment-40327897" class="comment js-comment " data-comment-id="40327897" data-comment-owner-id="1094611" data-comment-score="0"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> </div> </div> <div class="comment-text js-comment-text-and-form"> <a name="comment40327897_25785201"></a> <div class="comment-body js-comment-edit-hide"> <span class="comment-copy">@DieterGoetelen yeah you are right, I forgot that, my `ng-app` was on `` instead of ``! Thank's</span> – <a href="../../users/1094611/syl" title="2,232 reputation" class="comment-user owner">Syl</a> <span class="comment-date" dir="ltr"><a class="comment-link" href="../../questions/25785201/ng-bind-on-title-doesn-t-work#comment40327897_25785201"><span title="2014-09-11T10:41:53.313 License: CC BY-SA 3.0" class="relativetime-clean">Sep 11 '14 at 10:41</span></a></span> </div> </div> </li> <li id="comment-54377785" class="comment js-comment " data-comment-id="54377785" data-comment-owner-id="1452739" data-comment-score="0"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> </div> </div> <div class="comment-text js-comment-text-and-form"> <a name="comment54377785_25785201"></a> <div class="comment-body js-comment-edit-hide"> <span class="comment-copy">since this is answered you should answer the question or close it.</span> – <a href="../../users/1452739/enkode" title="4,515 reputation" class="comment-user ">Enkode</a> <span class="comment-date" dir="ltr"><a class="comment-link" href="../../questions/25785201/ng-bind-on-title-doesn-t-work#comment54377785_25785201"><span title="2015-10-22T19:18:35.910 License: CC BY-SA 3.0" class="relativetime-clean">Oct 22 '15 at 19:18</span></a></span> </div> </div> </li> </ul> </div> </div> </div> </div> <div id="answers"> <a name="tab-top"></a> <div id="answers-header"> <div class="answers-subheader grid ai-center mb8"> <div class="grid--cell fl1"> <h2 class="mb0" data-answercount="9">1 Answers<span style="display:none;" itemprop="answerCount">1</span></h2> </div> </div> </div> <a name="33317393"></a> <div id="answer-33317393" class="answer accepted-answer" data-answerid="33317393" data-ownerid="1094611" data-score="5" itemprop="acceptedAnswer" itemscope="" itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container grid jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="33317393"> <button class="js-vote-up-btn grid--cell s-btn s-btn__unset c-pointer"><svg aria-hidden="true" class="m0 svg-icon iconArrowUpLg" width="36" height="36" viewBox="0 0 36 36"><path d="M2 26h32L18 10 2 26z"></path></svg></button> <div class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center" itemprop="upvoteCount" data-value="5">5</div> <div class="js-accepted-answer-indicator grid--cell fc-green-500 py6 mtn8"><div class="ta-center"><svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewBox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8z"></path></svg></div></div> </div> </div> <div class="postcell post-layout--right"> <div class="s-prose js-post-body" itemprop="text"><p>This is fixed by adding <code>ng-app</code> on <code><html></code> tag.</p></div> <div class="mb0"> <div class="mt16 grid gs8 gsy fw-wrap jc-end ai-start pt4 mb16"> <div class="grid--cell mr16 fl1 w96"></div> <div class="post-signature owner grid--cell"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="answered Oct 24 '15 at 10:57">answered Oct 24 '15 at 10:57</time> <a href="../../users/1094611/syl" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/1094611.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Syl" /> </a> <div class="s-user-card--info"> <a href="../../users/1094611/syl" class="s-user-card--link">Syl</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,232</li> <li class="s-award-bling s-award-bling__gold" title="8 gold badges">8</li> <li class="s-award-bling s-award-bling__silver" title="34 silver badges">34</li> <li class="s-award-bling s-award-bling__bronze" title="45 bronze badges">45</li> </ul> </div> </div> </div> </div> </div> </div> <div class="post-layout--right js-post-comments-component"> </div> </div> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>