Angular - Component Interaction
You want to create a component that projects multiple paragraphs and highlights the first paragraph. Which approach correctly achieves this?
Options:
A) Use
B) Use
C) Use
D) Use
Options:
A) Use
@ContentChildren('para') and highlight the first in the list.B) Use
@ContentChild('para') and add #para to the first paragraph only.C) Use
@ViewChild('para') inside the component template.D) Use
@ContentChild without a selector and highlight all paragraphs.