blob: 1a1162f0901aa87cfb3cb75ced66464d235b3aa6 (
plain) (
tree)
|
|
import { Component, Input } from '@angular/core'
@Component({
selector: 'my-button',
styleUrls: ['./button.component.scss'],
templateUrl: './button.component.html'
})
export class ButtonComponent {
@Input() label = ''
@Input() className: string = undefined
@Input() icon: string = undefined
@Input() title: string = undefined
getTitle () {
return this.title || this.label
}
}
|