Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .run(function($ionicPlatform) {
- $ionicPlatform.ready(function($rootScope, $ionicPopup, $timeout) {
- // Code here
- ....
- $rootScope.showAlert = function() {
- var alertPopup = $ionicPopup.alert({
- title: 'Don't eat that!',
- template: 'It might taste good'
- });
- alertPopup.then(function(res) {
- console.log('Thank you for not eating my delicious ice cream cone');
- });
- };
- // Code here
- ....
- });
- <button ng-click="$root.showAlert()">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement