"In the short term, Ember components will be as coupled to Ember as Angular components are to Angular.
However, by decoupling data bindings via Raf's bind proposal, and using Ember Views mostly to fill in gaps where poly fills would be too cumbersome, I could easily imagine an Ember component being relatively portable with a bit of work once more of the pieces are in the platform.
That seems less true about Angular components at present, which rely heavily on Angular's data binding system (which supports binding to the results of expressions) and the compile and link hooks, which rely on the particular flow of Angular bootstrapping.
Do you know of any plans to move the semantics of Angular directives to be closer to web components and MDV? If so, we should seriously consider what a medium-term interop story could look like."
Me (Pat):
I think Angular is going the way of following MDV, for example at I/O they announced that vars can be defined in controllers without using the $scope object but directly in pure JS using this.model = "foo" so I would except that directives will mimic web components too but I think Miško could enlighten you better than me on this. Miško? :)
Yehuda's answer: (I think you forgot to Reply all):"In the short term, Ember components will be as coupled to Ember as Angular components are to Angular.
However, by decoupling data bindings via Raf's bind proposal, and using Ember Views mostly to fill in gaps where poly fills would be too cumbersome, I could easily imagine an Ember component being relatively portable with a bit of work once more of the pieces are in the platform.
That seems less true about Angular components at present, which rely heavily on Angular's data binding system (which supports binding to the results of expressions) and the compile and link hooks, which rely on the particular flow of Angular bootstrapping.
Do you know of any plans to move the semantics of Angular directives to be closer to web components and MDV? If so, we should seriously consider what a medium-term interop story could look like."
Me (Pat):
I think Angular is going the way of following MDV, for example at I/O they announced that vars can be defined in controllers without using the $scope object but directly in pure JS using this.model = "foo" so I would except that directives will mimic web components too but I think Miško could enlighten you better than me on this. Miško? :)
We're in early stages of designing Angular 2.0, but some of our goals are:
- Angular will use the underlying web platform features available to it (e.g. Node.bind, template integration, Custom Elements, etc...)
- Web Components (Polymer, Ember, or any other framework/library) will work seamlessly within Angular apps and directives.
- Components written in Angular will export to Web Components (to be used by Polymer, Ember, or any other framework/library) .