Retour aux cas pratiques
IonicFondamental

Correction d’une alerte Ionic non affichée

Scénario

Contexte : Une alerte doit s’afficher après action utilisateur. Le Problème : L’alerte n’apparaît pas. Extrait logique actuelle : const alert = this.alertController.create({ header: 'Info', message: 'Succès' }); Sans présentation. Contraintes : Utiliser await alert.present(). Gérer méthode async correctement. Livrable attendu : Corriger l’implémentation afin que l’alerte soit correctement affichée.

Compétences ciblées

alertcontrollerasync-awaitbugfixionicangular
    Correction d’une alerte Ionic non affichée — mise en situation Ionic | CodeDuel