Re:Angular 4.0.0 Now Available
by Touche on Thursday March 23, 2017 @10:27PM
(#13946110)
Is Angular ever going to support web standards such as web components?
[ Parent
| on HN ]
Re:Angular 4.0.0 Now Available
by robwormald on Thursday March 23, 2017 @10:34PM
(#13946146)
You can already use most simple web components in Angular without issues - as far as Angular is concerned, it's just another DOM element.
We also support native (or emulated) Shadow DOM out of the box.
It gets a little more interesting when you start interleaving Angular and WebComponents, but one of the deprecations in 4.0 (regarding Angular's use of the <template> tag) is squarely aimed at making that easier in the future.
Thanks, what I was asking is when are Angular components going to be Web components?
Re:Angular 4.0.0 Now Available
by robwormald on Friday March 24, 2017 @01:25PM
(#13950596)
It's unlikely we'll ever have developers write Custom Elements directly - that said, the View Engine rewrite we just did gives us the ability to (theoretically) have our compiler output Custom Elements. We're investigating some use cases on this.