1👍
✅
You are using jquery bootstrap js functionality in your code
Try following :
<button class="btn btn-primary" type="button" ng-click="checkBinning()">Check Binning</button>
and
$scope.checkBinning = function () {
selected_checks = $scope.checkGridOptions['selectedItems'];
$scope.no_show = false;
$scope.final_select = false;
var modalInstance = $modal.open({
animation: $scope.animationsEnabled,
templateUrl: 'checkRecommendTarget.html',
}
});
$scope.route = 'for_escalate';
$scope.select_title = 'GROUPS';
$scope.heading = 'Check Binning';
};
and add your modal template like in script
<script type="text/ng-template" id="checkRecommendTarget.html">
</script>
and dont forget to add $modal
dependency in your controller
Source:stackexchange.com