Last active
December 21, 2015 23:19
-
-
Save somebody32/6381897 to your computer and use it in GitHub Desktop.
Ember RC8 binding stranges
This file contains 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.UserController = Ember.ObjectController.extend | |
needs: "application" | |
currentUser: null | |
currentUserBinding: Ember.Binding.oneWay("controllers.application.currentUser") |
This file contains 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
## 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