Skip to content

Instantly share code, notes, and snippets.

@charandas
Created June 7, 2014 17:34
Show Gist options
  • Save charandas/689e2c30ddddec25103d to your computer and use it in GitHub Desktop.
Save charandas/689e2c30ddddec25103d to your computer and use it in GitHub Desktop.
Using the $modal wrapper
// This modal will automatically close after the short timeout (i.e. 15 secs)
var modal = ModalService.open({
templateUrl: 'views/core/purchase/notifications/processing-timeout.html',
size: 'medium',
timeout: 15000
});
modal.instance.result.then(function() {
// No additional actions for dismiss
}, function() {
$scope.resetApp();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment