Files
angular-challenges/apps/angular/6-structural-directive/src/app/button.component.ts
2024-05-12 12:18:12 +02:00

16 lines
417 B
TypeScript

/* eslint-disable @angular-eslint/component-selector */
import { ChangeDetectionStrategy, Component } from '@angular/core';
@Component({
standalone: true,
selector: 'button[app-button]',
template: `
<ng-content></ng-content>
`,
host: {
class: 'border border-blue-700 bg-blue-400 p-2 rounded-sm text-white',
},
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ButtonComponent {}