Skip to content

Instantly share code, notes, and snippets.


wKoza/post.ts Secret

Last active Jan 14, 2017
What would you like to do?
const headers = new Headers({'Content-Type': 'application/json'});
const options = new RequestOptions({ headers: headers });
private url = '';
Observable<Article> article$ =, JSON.stringify(article), options)
.map((res:Response) => res.json() as Article)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment