ember.js - How to check controller name -


i wanted display below html section in index page not show up.

  {{#if name}}   <header>       <div class="container">           <div class="intro-text">               <div class="intro-lead-in">welcome our joint!</div>               <div class="intro-heading">it's nice meet you</div>               <a href="#services" class="page-scroll btn btn-xl">tell me more</a>           </div>       </div>   </header>   {{/if}} 

this put in index controller:

app.indexcontroller = ember.objectcontroller.extend({ name: function() {     if (controller == this.get('indexcontroller')) {        return true;     } else {        return false;     } }.property() }); 

any appreciated.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -