I want to add jQuery datatable using AngularJS.
$scope.SearchData = function () {
var myData = new Object();
myData.EmployeeCode = $("#Person").val();
$http.post("/admin/GetData", myData)
.then(function (response) {
$scope.itemData = response.data.Initiator;
$('#dtBasicExample').DataTable();
});
};
I am using this searching the data. This is working after the second click of button.