Skip to content

Instantly share code, notes, and snippets.

@alexspeller
Created August 9, 2013 22:25
Show Gist options
  • Save alexspeller/6197819 to your computer and use it in GitHub Desktop.
Save alexspeller/6197819 to your computer and use it in GitHub Desktop.
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