Skip to content

Instantly share code, notes, and snippets.

@raila
Last active December 11, 2015 10:59
Show Gist options
  • Save raila/4590683 to your computer and use it in GitHub Desktop.
Save raila/4590683 to your computer and use it in GitHub Desktop.
App.WhateverRoute = Ember.Route.extend
setupController: (controller) ->
applicationController = @controllerFor('application')
applicationController.set 'title', 'new title'
App.WhateverController = Ember.ObjectController.extend
setTitle: ->
@send('setTitle', 'new title')
App.ApplicationRoute = Ember.Route.extend
setTitle: (title) ->
console.log title
# set title to controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment