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