I am trying to send an AJAX request in order to retrieve a JSP/HTML page for the templateUrl of a modal. Here is the code I have written:
var modalInstance = $uibModal.open({
animation: $scope.animationsEnabled,
templateUrl: 'pages/recordingDetailPopup.jsp',
controller: 'FileDetailCtrl',
size: 'lg',
resolve: {
activeRecords: function () {
return inbnoxList;
}
}
});
However, I would like to achieve something similar to the following:
var modalInstance = $uibModal.open({
animation: $scope.animationsEnabled,
templateUrl: function(){
$http.get('fileDetailJsp');
},
controller: 'FileDetailCtrl',
size: 'lg',
resolve: {
activeRecords: function () {
return inbnoxList;
}
}
});
If anyone has suggestions on how to implement this functionality, please let me know.