I'm very confused. Can an Angular 2 Component be reused outside of the Angular scope just like a Web Component?
Or maybe it's more than that?
I'm very confused. Can an Angular 2 Component be reused outside of the Angular scope just like a Web Component?
Or maybe it's more than that?
The intention was to make Angular components reusable Web components like Polymer elements and it was communicated this way a while back.
Currently support for this is only very limited. Each Angular root component (the outer-most Angular component) is a distinct Angular application and the root component is quite limited.
@Input()
doesn't read attribute values while it does inside another Angular component@Attribute()
annotation for a constructor argument doesn't inject the attribute value like it does when used inside another Angular2 component<ng-content>
to wrap existing HTML with an Angular componentThis might be an open task for later but there is currently no concrete information available as far as I know.