Created
August 9, 2013 22:25
-
-
Save alexspeller/6197819 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
| I have the following snippets of code: | |
| //my-custom-view.js | |
| MyCustomView = Ember.View.extend({ | |
| myPropertyBinding: 'parentView.propertyINeed' | |
| }) | |
| // outerView.handlebars | |
| {{view MyCustomView}} | |
| // outerView.js | |
| OuterView = Ember.View.extend({ | |
| }); | |
| ============ | |
| What I want is, whenever the computer property in MyCustomView gets updated, to notify a property on OuterView. Essentially I need to bind an OuterView property to a property on the inner MyCustomView, and I'm wondering what the "best practice" way to accomplish this is. | |
| Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment