ViewChild
or ViewChildren
can access any DOM element, component, or directive. But it cannot be used to access the projected content. While ContentChild
or ContentChildren
can access only the projected content, but cannot be used to access any other content.Projected content is the content that this component receives from a parent component.
References
https://angular.io/api/core/ContentChild