mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
16 lines
417 B
TypeScript
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 {}
|