1
Boa Tarde Personal,
I recently met the Sweet Alert library. I’m trying to use it to leave a page, currently count only with a Function in Typescript.
I would like to know how to transfer Sweet Alert 2 to that output confirmation.
confirmarSair() {
const r = window.confirm("deseja sair?");
if (r) {
window.sessionStorage.clear();
window.location.href = `${environment.logoutUrl}?redirect_uri=${environment.noderedUrl}`;
}