📜  contentchildren vs viewchildren - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:07.800000             🧑  作者: Mango

代码示例1
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 ( THIS )
*shadow dom = internal template (component.html)