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..f2fd5bb6d 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,17 +1,26 @@ +import { NgTemplateOutlet } from '@angular/common'; import { ChangeDetectionStrategy, Component, input } from '@angular/core'; @Component({ selector: 'app-card', + imports: [NgTemplateOutlet], template: ` - @if (small()) { + + + + + + @if (small()) { + + } @else {
- +
- +
} `,