import { Component, OnInit } from '@angular/core';
import { DdrToastService } from 'ddr-toast';
@Component({
selector: 'example-ddr-toast',
templateUrl: './example-ddr-toast.component.html',
styleUrls: ['./example-ddr-toast.component.css']
})
export class ExampleDdrToastComponent implements OnInit {
constructor(private toastService: DdrToastService) { }
ngOnInit() {
}
addInfo() {
this.toastService.addInfoMessage("titulo", "contenido")
}
addError() {
this.toastService.addErrorMessage("titulo", "contenido")
}
addWarning() {
this.toastService.addWarningMessage("titulo", "contenido")
}
addSuccess() {
this.toastService.addSuccessMessage("titulo", "contenido")
}
}