Wednesday 3 April 2013

Mapping an Angular Resource Service to a Web API

Previously I was calling an ASP.NET Web API controller from an AngularJS controller using the $http service. $http.get(serviceUrl).success(function (data) { $scope.videos = data; }); With a little bit of work I can use a higher level of abstraction in Angular - a custom service based on $resource.
crawled from : Odetocode

No comments:

Post a Comment