Hi - I'm wondering if I'm approaching the scope paradigm in the correct way. I'm working on a page that uses two views, but shares data in between the controllers. I'm storing the data model on $rootScope, so that it can be easily accessed from any of the controllers. However, this makes two way databinding tricky. Using the bracket notation works for read-only fields in the view (because of scope inheritance), but if I want to bind to, say, a text box, I can't just use ng-model="someProperty", because that's binding to the controller's scope, NOT the root scope. I could use ng-model="$parent.someProperty" to bind directly to the root scope, but in reality, that will end up being something like ng-model="$parent.$parent.$parent... someProperty", which seems needlessly confusing and prone to page breakage.
Does anyone have any feedback on this, or a better approach to maintaining a single data model?
Thanks.