Well, you don't need to call the service like this. First of all, $http calls return promises which can be handled by using 'then' callbacks. So you can add multiple different callbacks for the similar calls. In your case:
myApp.factory('Test',function($http) {
get : function(id) {
return $http({
url: 'api/load/'+id
});
}
});
And in your controller:
function TestController($scope, Test) {
$scope.model = {};
$scope.load : function(id) {
Test.get(id).then(function(result) {
$scope.var1 = result;
});
Test.get(id).then(function(result) {
$scope.var2 = result;
});
}
}
Another way is to do like this:
myApp.factory('Test',function($http) {
get : function(context, variable, id) {
return $http({
url: 'api/load/'+id
}).success(function(result) {
context[variable] = result;
});
}
});
And in your controller:
function TestController($scope, Test) {
$scope.model = {};
$scope.load : function(id) {
Test.get($scope, 'var1', id);
Test.get($scope, 'var2', id);
}
}