Nesting Elements in Angular 2 Components with ng-content (AKA Angular 2 Transclusion)

InstructorJohn Lindquist

Share this video with your friends

Send Tweet

You can place content inside of the instance of your component element then manage it inside of the component’s template using ng-content. This process is called reprojection, but you may be more familiar with the term “transclusion”.

Enrique Montiel
~ 5 years ago

Is there a reason not to just make it a directive if the only thing your template has is an ng-content tag?