Category "angular-components"

Angular component ng-content passing template with dynamic output placeholders

Is it possible to have a component that can handle dynamic projection like this? <my-component [date]="2022-03-22"> <p>This date falls on a <

fa-icon is not a known element in a Reusable Module

Not sure why this is happening on a reusable Module (or what Iv'e got wrong). ERROR Error: Uncaught (in promise): Error: Template parse errors:'fa-icon' i

How to apply a component's [ngClass] to its child element

Is there a way to allow ngClass to be set on a parent element, but redirect it so the classes are actually applied to a child element? <!-- Parent Componen