YUNOVA · Angular · Module 12: Angular architecture
Content projection and ng-template
Content projection and ng-template
Key points
- ng-content projects content from the parent into a component.
- The select attribute projects content into named slots.
- ng-template defines markup that renders only when used.