2 modal in one controller

Hello
I use 2 modal in my controller. I do it for another controller but now i can’t do it. here is my code
`$ionicModal.fromTemplateUrl(‘templates/imagemodal.html’, {
scope: $scope,
animation: ‘slide-in-up’
}).then(function(modal) {
$scope.modal = modal;
});

$scope.openModal = function() {
  $ionicSlideBoxDelegate.slide(0);
  $scope.modal.show();
};

$scope.closeModal = function() {
  $scope.modal.hide();
};



$ionicModal.fromTemplateUrl('templates/profile/changepic.html', {
  scope: $scope,
  animation: 'slide-in-up'
}).then(function(modal2) {
  $scope.changepicim = modal2;
});
// Cleanup the modal when we're done with it!


$scope.openprof = function() {

  $scope.changepicim.show();
};

$scope.closeprof = function() {
  $scope.changepicim.hide();
};`

when i use $scope.openprof() console log is
Error: undefined is not an object (evaluating '$scope.changepicim.show')

where i’m wrong?
sorry for bad english.

sorry my bad. The url path was wrong :frowning: sorry for disturb