I am currently learning angular2 to create a web page.
how can I connect to server with the link taomi.softape.io/api/item/item (provided by postman), I want to fetch data form the link.
here is my code
var headers = new Headers();
headers.append('Content-Type', 'application/json');
this.http.post('taomi.softape.io/api/item/item',
JSON.stringify({firstName:'Joe',lastName:'Smith'}),
{headers:headers})
.map((res: Response) => res.json())
.subscribe((res:Person) => this.postResponse = res);