Created
June 7, 2014 17:34
-
-
Save charandas/689e2c30ddddec25103d to your computer and use it in GitHub Desktop.
Using the $modal wrapper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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