0
我在我的角度型號如下:如何製作Restangular POST?
return Restangular.all('user/session/authenticate').post({user_id: user_id, password: password});
,我在我的控制器調用:
User.authenticate($scope.user.userId, $scope.user.username)
.then(function (authToken) {
//do stuff
};
但是,它從來沒有提出請求。標題被創建,數據在那裏,並且沒有錯誤。我知道這可能是我,但對於我的生活,我無法弄清楚什麼。另外,我可以成功地向同一服務發出GET請求。