I am new in angular Other Binding is working fine but $https call is not working I got error like this when I call http call
Failed to load resource: the server responded with a status of 404 (Not Found) My Script Code is
(function(angular) {
var myApp = angular.module("myApp", []);
myApp.controller('myTestController', function($scope, $http) {
$scope.firstName = "Test";
$http.get("Students/GetStudents").success(function(response) {
$scope.firstName = response;
});
});
})(window.angular);
My API Controller is:
[HttpGet]
public string GetStudents() {
return "My Value";
}