Confirmation popup with Ionic

Written by lenny cartier.

Sometimes you have to display a confrmation message to your users right after an action, such as saving, deleting, sending something or maybe something was wrong. I needed to implement this behaviour on a Ionic-based app I am working on.

So I wrote this service :

You can simply use it anywhere in your code (don't forget to dependency-inject the "common" service in your controllers/services) with something like :

common.backDrop('Saved !');

Here is a codepen :