In some cases we don’t want to use hooks or JSX to invoke an alert (or toast, loading etc). Using plain JS used to work in Ionic 5 but it stays hidden in the new version (including the official starter templates). Is there anything we could do to fix this?
const alert = document.createElement('ion-alert');
alert.header = 'Alert';
document.body.appendChild(alert);
alert.present();
Cheers
1 post - 1 participant