Last active
December 11, 2015 10:59
-
-
Save raila/4590683 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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