Open Luvelnet opened 8 months ago
I am trying to show a notification with html, but there is no way.
This is my code:
const htmlContent = this.sanitizer.bypassSecurityTrustHtml('<div>Nuevo intento de inicio de sesión desde la web</div><div><button (click)="accept()">Aceptar</button><button (click)="reject()">Rechazar</button></div>'); this.notificationsService.html({ html: htmlContent, type: 'info', override: { timeOut: 0, showProgressBar: false, pauseOnHover: false, clickToClose: false }});
And this is my result:
Can anybody help me?
The value for html could also be an Angular TemplateRef. Is this a solution for your problem?
I am trying to show a notification with html, but there is no way.
This is my code:
And this is my result:
Can anybody help me?