import { Component, OnInit, Output, EventEmitter, Input } from '@angular/core'; @Component({ selector: 'rdp-icon-button', styleUrls: ['./rdp-icon-button.component.css'], template: ` ` }) export class RdpIconButtonComponent implements OnInit { @Output() rdpClick = new EventEmitter(); @Input() isDisabled:boolean = false; @Input() text = "Button Name"; @Input() icon : string; constructor() { } ngOnInit() { } emitClickEvent(){ this.rdpClick.emit(); } // Example usage: ( Needs Testing: ) // ================================== // // Note: Ensure the text and icon strings are enslosed in this formt : "' <> '" }