<script>
//Use one of the alert templates below

var showAlert = function() {
  ons.notification.alert('Alert!');
};

var showConfirm = function() {
  ons.notification.confirm('Confirm!')
};

var showPrompt = function() {
  ons.notification.prompt('Prompt!')
    .then(function(input) {
      var message = input ? 'Entered: ' + input : 'Entered nothing!';
      ons.notification.alert(message);
    });
};

var showToast = function() {
  ons.notification.toast('Toast!', {
    timeout: 2000
  });
};
</script>