UNPKG

angular2-simple-ui

Version:

Angular 2 Simple Material Design UI Components customisable with Simple 30 KB CSS with LESS support and full features support , just plugin up and run for clarity look at sample examples

16 lines (13 loc) 457 B
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core'; import { ButtonModel } from '../sui.util/sui.util.button.model'; @Component({ selector: 'sui-button', templateUrl: './sui.button.component.html', }) export class ButtonComponent { @Input() model: ButtonModel; @Output() onClick: EventEmitter<any> = new EventEmitter<any>(); onBtnClick(event: any) { this.onClick.emit(event); } }