import { ChangeDetectionStrategy , Component , Input , ViewEncapsulation } from '@angular/core' ; import { SnotifyService } from '../../services/snotify.service' ; import { SnotifyToast } from '../../models/snotify-toast.model' ; @ Component ( { selector : 'ng-snotify-button' , templateUrl : './buttons.component.html' , changeDetection : ChangeDetectionStrategy . OnPush , encapsulation : ViewEncapsulation . None } ) export class ButtonsComponent { /**
     * Get buttons Array
     */ @ Input ( ) toast : SnotifyToast ; constructor ( private service ) { } /**
     * remove toast
     */ remove ( ) { this . service . remove ( this . toast . id ) ; } }