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
38 lines (32 loc) • 976 B
text/typescript
import { Component, OnInit, Input, Output,
OnChanges, EventEmitter, trigger,
state, style, animate, transition } from '@angular/core';
export class ModalComponent implements OnInit {
closable = true;
visible: boolean;
headerText: string;
headerIcon: string= '';
cssClassHeader: string= 'sui-theme';
visibleChange: EventEmitter<boolean> = new EventEmitter<boolean>();
constructor() { }
ngOnInit() { }
close() {
this.visible = false;
this.visibleChange.emit(this.visible);
}
}