@sarahhsu wrote:
Ionic popup not working.....
<button class = "button" ng-click = "showAlert()">Add Popup Show</button> $scope.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'); }); };
Posts: 5
Participants: 2