6 ms·
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 nativ
by robwormald 10y ago
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.
- Touche 10y agoThanks, what I was asking is when are Angular components going to be Web components?
- robwormald 10y agoIt'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.