function FooController($scope, provider) { $scope.order = provider.order; } function fooService($http, Order) { var order = this.order = new Order(); $http.get('someurl').then(function(result) { Order.call(order, result.data); }); }