Hi in my app i have already a ionic modal for login
$ionicModal.fromTemplateUrl('templates/login.html', {
scope: $scope
}).then(function(modal) {
$scope.modal = modal;
});
Now i need to create a new ionic modal with new html page. How can I do this?
While the answer is completely valid, but you don't need to create new controller every time you need a modal.
You should generally put each modal in the controller for a specific view. That way, as you leave the view, you can destroy the modal (if appropriate).
Single Function multiple Instance.