Angularjs $http.get Not Working
on my server side (ASP.ne MVC) I have method which looks like this: [HttpGet] public JsonResult GetTrenings(string treningId) { var tempId = Guid.Parse(treningI
Solution 1:
You don't need to defer your call to $http because it already returns a promise.
Just return
return $http.get("/Feed/GetTrenings", { params: { treningId: data } });
then anything that calls your function can do:
getTrenings(myData).then(function(data) { do something }).fail(function() { error });
Post a Comment for "Angularjs $http.get Not Working"