Warum ist meine $scope.aux
leer, während die Antwort aucally da ist?angularjs Service und Antwort
Antwort:
Ich habe folgend in der Fabrik:
o.getfirm = function() {
return $http.post('/firms', null, {
headers: {Authorization: 'Bearer '+auth.getToken()}
}).then(function(response){
console.log("getting firm");
console.log(response.data);
return response.data;
});
};
Anrufer:
$scope.aux = testservice.getfirm();
console.log("checking");
console.log($scope.aux);
Dank! wird antworten wenn es möglich ist. Hast du auch Zeit für ein anderes Thema? – maria
Stellen Sie Ihre Frage und ich werde versuchen, schnell zu antworten – Silvinus
ist hier: http://StackOverflow.com/Questions/38957777/schema-hasst-been-registred-for-Model-mean-stack – maria