Coding task · Angular course · Module 14: Advanced Patterns

Practice: Content Projection

The content projection element inserts content passed by the parent into the template. It can take an attribute with a CSS selector (e.g. [header]) that sends only matching elements to that slot, while a slot without a selector collects everything else.

Task

Complete the card component with multiple content projection slots.