While comparing Angular Content Projection using <ng-content>
with HTML's ShadowDOM (ShadowDOM Visualizer), I found a subtle difference.
In the above mentioned link page, when I remove select
attribute of <content>
in <header>
tag, then all other contents are attached to header component.
While in Angular, only elements having no selector are collected and appended to the wildcard <ng-content></ng-content>
I got technically nostalgic while viewing the above link. So, this question came in my mind.
Note: I am redirected to that link from Google Developer's Web Fundamentals on Shadow DOM.