I am trying to use modal in my project
I've created a project in Angularjs and trying to using modal but it is giving error all the time.
My js File
$scope.View = function (empId) {
console.log(empId)
$uibModal.open({
templateUrl: '/Scripts/DataTable/Partials/EmployeeDetails.html',
controller: 'employeeDetailsController',
backdrop: 'static',
scope: $scope,
});
}
}]);
My main app js file
var myApp = angular.module("myModule",[
'ui.bootstrap',
]
);
I've added all related js files to the main HTML
layout.html
I've tried all the available modal names=> $modal, $uiModal, $uibModalInstance.
Please tell me what I'm missing?