You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so we only to change injector when migrate code using this module
angular.module('app',['angular-servicestack']).controller('HttpController',['$scope','$http',function($scope,$http){$http.get('/api').success(function(data,status,headers,config){$scope.result=data;});}])//change the provider declaration without change function.controller('ServiceStackController',['$scope','serviceStackRestClient',function($scope,$http){$http.get('/api').success(function(data,status,headers,config){$scope.result=data;});}]}
so less code to migrate.
just my suggestion IMHO.
regard
The text was updated successfully, but these errors were encountered:
I've gone back and forth on this one, mainly because I didn't want to clutter things up. But I think the ability to get at the headers and config will come up at some point. I'll add this in the next couple days.
IMHO it better matching $http API as it easy to replace current $http provider with angular-servicestack
so we only to change injector when migrate code using this module
so less code to migrate.
just my suggestion IMHO.
regard
The text was updated successfully, but these errors were encountered: