0
我々は、角のjs
module.exports = function ($http, utils) {
var self = this;
self.login = function (credentials) {
var config = {
headers: {
//'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8;'
'Content-Type': 'application/json'
}
};
return $http.post(utils.apiUrl('admin/login'), credentials, config);
};
}でウェブAPI2方法を消費することはできません。
実際には角度コントローラに戻っています。 service.jsのこの関数 – Biranchi