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
text/typescript
import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
import { ButtonModel } from '../sui.util/sui.util.button.model';
({
selector: 'sui-button',
templateUrl: './sui.button.component.html',
})
export class ButtonComponent {
() model: ButtonModel;
() onClick: EventEmitter<any> = new EventEmitter<any>();
onBtnClick(event: any) {
this.onClick.emit(event);
}
}