Please I want to call a function inside a toaster. When I put an a href link it work but button no. When I put the button outside the toastr the function call it work. Thanks.
this.toastr.toastrConfig.enableHtml=true;
this.toastr.info(" <button type='button' (click)='this.exportexcel()'>click here</button> ");
exportexcel(): void
{
console.log('text')
}
I have tried this its not working also inside the toaster but outside it work.
<a style='cursor: pointer' (click)='this.exportexcel()'> cloud_download</a>