One thing that can be confusing when starting out Ember is the different way that scopes are resolved between template code and in javascript code. For example in a template you might have {{#if controllers.user.isLoggedIn}}, but in order to access the same property in a route, you need to have this.controllerFor('user').isLoggedIn (use of controllerFor in a controller is deprecated, but the point remains). This post is about how I inject handlebars into views for the sake of displaying alert messages.
Your new post is loading...