import { Component, OnInit, Output, EventEmitter, Input } from '@angular/core'; @Component({ selector: 'rdp-button', styleUrls: ['./rdp-button.component.css'], template: ` ` }) export class RdpButtonComponent implements OnInit { @Output() rdpClick = new EventEmitter(); @Input() isDisabled:boolean = false; @Input() text = "Button Name"; constructor() { } ngOnInit() { } emitClickEvent(){ this.rdpClick.emit(); } // Usage Example 1: // // Example 2: // }