Answers for "content child vs viewchild"

2

contentchildren vs viewchildren

Both are Angular2+ decorators, the key difference is that @ViewChildren look 
for elements in Shadow DOM while @ContentChildren look for them in Light DOM.

*light dom = inner template of the component (<component> THIS </component>)
*shadow dom = internal template (component.html)
Posted by: Guest on September-08-2021

Code answers related to "content child vs viewchild"

Browse Popular Code Answers by Language