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
Post a Comment