diff --git a/apps/angular/58-content-projection-condition/src/app/card.component.ts b/apps/angular/58-content-projection-condition/src/app/card.component.ts index 46925977c..ccb905eb1 100644 --- a/apps/angular/58-content-projection-condition/src/app/card.component.ts +++ b/apps/angular/58-content-projection-condition/src/app/card.component.ts @@ -1,24 +1,34 @@ +import { NgTemplateOutlet } from '@angular/common'; import { ChangeDetectionStrategy, Component, input } from '@angular/core'; @Component({ selector: 'app-card', template: ` @if (small()) { - - + + } @else {
- +
- +
} + + + + + + + + `, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'p-4 border border-grey rounded-sm flex flex-col w-[200px]', }, + imports: [NgTemplateOutlet], }) export class CardComponent { small = input(false);