Skip to content

Instantly share code, notes, and snippets.

@somebody32
Last active December 21, 2015 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somebody32/6381897 to your computer and use it in GitHub Desktop.
Save somebody32/6381897 to your computer and use it in GitHub Desktop.
Ember RC8 binding stranges
App.UserController = Ember.ObjectController.extend
needs: "application"
currentUser: null
currentUserBinding: Ember.Binding.oneWay("controllers.application.currentUser")
## RC7 Results
App.__container__.lookup('controller:application').get('currentUser') => Class {constructor: function, reopen: function…}
App.__container__.lookup('controller:users').get('currentUser') => Class {constructor: function, reopen: function…}
## RC8 Results
App.__container__.lookup('controller:application').get('currentUser') => Class {constructor: function, reopen: function…}
App.__container__.lookup('controller:users').get('currentUser') => null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment