I am trying to show a notification with html, but there is no way.
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
}});
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?