我需要一些帮助。我正在构建一个图书馆应用程序.I需要从服务器获得图书,标题和作者的列表,并能够更新和插入到服务器上的数据库中的新书。Get方法运行良好,我得到了所有信息的列表,但是pust方法由于这个错误而无法工作。
POST http://localhost:3002/app/components/bookdata/dbooks.json 404 (Not
Found)
import {Injectable} from '@angular/core';
import {Http,Response} from '@angular/http';
impor
我是angular js的新手。在这里,我尝试使用node server来发布angular表单。
Here is my code
in register.js
$scope.sendForm = function() {
alert("form is good");
$scope.fileds= $scope.data;
var posting = $http({
method: 'POST',
我在我的angular 2应用程序中有这个POST数据:
postServices(property) {
let body = JSON.stringify(property);
let headers = new Headers({'Content-Type': 'application/json'});
let options = new RequestOptions({ headers:headers });
return this._http.post(this._url, body, options)