import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core"; @Component({ selector: "app-button", templateUrl: "./button.component.html", styleUrls: ["./button.component.css"] }) export class ButtonComponent implements OnInit { @Output() onButtonClick = new EventEmitter(); @Input() buttonLabel: string; @Input() type: "primary" | "secondary" | "link" = "primary"; @Input() disabled: boolean; @Input() className: string; @Input() color: string; @Input() backgroundColor: string; constructor() {} ngOnInit() {} onClick() { this.onButtonClick.emit(null); } }