I created popup ionic and it’s work. but I got something problem, I want when I after make a choice ( with input radio ), a popup will close. and until now, it doesn’t work .
this my code app.js
.controller('PopUp',function($scope, $ionicPopup ) {
// Triggered on a button click, or some other target
$scope.showPopup = function() {
$scope.data = {}
// An elaborate, custom popup
var myPopup = $ionicPopup.show({
templateUrl: 'templates/Popuptes.html',
scope: $scope,
});
myPopup.closeInController = function() {
console.log('close');
myPopup.close();
}
}
});
So please referral to this link it’s shows how to create popups in proper way I used it a lot and its working for me. http://codepen.io/ionic/pen/zkmhJ
there are any < input type=“text” > in file popuptes.html, if i chose food ( click radio ), < input type=“text” > will fill the value food…
can you help me?
thanks in advance