In my app, I'm changing the page title per route. However, the page title is outside the main {{outlet}} I'm using, i.e:
application.handlebars:
<h1>{{pageTitle}}</h1>
{{outlet}}
I want to set pageTitle in the child controllers for each route, so this is what I'm doing:
App.WidgetsRoute = Ember.Route.extend
setupController: (controller, model) ->
@._super(controller, model)
@controllerFor('application').set('pageTitle', 'Widgets')
Is this the right way to do this? I noticed a similar question, but the answer there didn't explain how to do this for titles that only change per-child controller and aren't necessarily calculable.