mirror of
https://github.com/adam-benyekkou/my_portfolio.git
synced 2026-01-15 20:20:09 +00:00
17 lines
339 B
TypeScript
17 lines
339 B
TypeScript
import { Component, input, output } from '@angular/core';
|
|
|
|
@Component({
|
|
selector: 'app-button',
|
|
imports: [],
|
|
templateUrl: './button.component.html',
|
|
styleUrl: './button.component.css',
|
|
})
|
|
export class ButtonComponent {
|
|
label = input<string>('label');
|
|
onClick = output<void>();
|
|
|
|
handleClick() {
|
|
this.onClick.emit();
|
|
}
|
|
}
|