Coding task · Angular course · Module 13: UI and Styling

Practice: Style encapsulation

ViewEncapsulation has three modes: the default one adds unique attributes to elements, the second uses a real Shadow DOM, and the third turns isolation off and makes the styles global. The component's own element (app-card) is styled with an Angular pseudo-selector, and ::ng-deep (deprecated) pierces the encapsulation.

Task

Complete the component with its own style encapsulation.