I need to close this Angular bootstrap modal whenever the user selects a 
row in a table:

var modalInstance = $modal.open({
  templateUrl : 'test.html',
  controller : TestController,
  resolve: {
      items: function () {
          return items;
      }
  }  });

I attempt to close the modal in TestController:

$scope.testFunction = function() {

   $scope.buElementGridOptions = {
       -- other grid options -- 
       afterSelectionChange: function(data) {
          **$modalInstance.close();** ---- This line gives error
       };}

In the afterSelectionChange method, at the line specified, I am getting the 
following error: *'undefined' is not an object (evaluating 
'k.get(a).value')*

Please suggest if someone has come across this kind of 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