Alain Chautard
1 min readApr 9, 2018

--

In my example, I don’t pass that value, I just have it in the parent template and the content gets transcluded into the child’s ng-content.

If I wanted to pass the value to the child component, @Input would be one way to do it, or using decorators like ViewChild or ContentChild to select a child by type.

--

--