Hi ,

I am trying to show a modal dialog on click of button. i have written the 
following code in my controller of thw view where button is present .

<button type="button"  class="footerbutton button" ng-click="open('lg')" 
>Open</button>

  $scope.open = function (size) {
    var modalInstance = $modal.open({
      templateUrl: 'pages/modalContent.html',
      controller: 'ModalCtrl',
      size: size,
      backdrop: false
      });

    modalInstance.result.then(function (selectedItem) {
    
    }, function () {
     
    });
  };


ModalCtrl:
module.controller('OptionsCtrl', ['$scope','$modalInstance',

    function($scope,$modalInstance){
  
$scope.closing= function(){
 $state.go("mycontroller");
$modalInstance.close();
};
}]);

When i test the above code. As soon as i click on the close button in the 
modal , the closing method has state.go which is not getting executed,.

Kindly help me in resolving this issue.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to