Hello, sorry for my bad English! The problem for which I request help, is that I have a quiz in a popup ($ionicPopup.show), and I want to show it when charge ion-view, and every time a question is answered. I would appreciate if you can guide me with this. So far, I do, but by clicking on a button, and do not want that, but it appears automatically. Thank you very much !
Hello, sorry for my bad English! The problem for which I request help, is that I have a quiz in a popup ($ionicPopup.show), and I want to show it when charge ion-view, and every time a question is answered. I would appreciate if you can guide me with this. So far, I do, but by clicking on a button (the controller works perfect) and do not want that, but I want it appears automatically. Thank you very much !
You want to show the popup window when the page loads?
You could do this:
.controller('appCtrl', function($ionicPopup, $scope, $ionicPlatform) { $ionicPlatform.ready(function() { $ionicPopup.alert({ title: 'Alert title', subTitle: 'This is an alert popup window', }).then(function(res) { }); }); });
This will make the popup alert window appear each time the appCtrl is called.
Thank you very much, it’s working!