import { Component } from '@angular/core';
import { SimplertService } from './simplert.component.service';
@Component({
selector: 'app-root',
styles: [`
.demo__btn{
padding: 10px 20px;
outline: none;
border: none;
text-align: center;
cursor: pointer;
color: #fff;
background-color: #068AC9;
-webkit-appearance: none;
-moz-appearance: none;
}
`],
template: `
Ng2-Simplert
By Irfan Maulana
Fork on Github
`
})
export class AppComponent {
constructor(private _simplertService: SimplertService){}
showPopup(title: string, message: string, type: string){
this._simplertService.openPopupBlockWithType(title, message, type);
}
modifyColor(hexColor: string){
this._simplertService.setColorBtn(hexColor);
}
}