Instantly share code, notes, and snippets.

@wKoza /put.ts Secret
Last active Jan 14, 2017

Embed
What would you like to do?
const headers = new Headers({'Content-Type': 'application/json'});
const options = new RequestOptions({ headers: headers });
private url = 'api.learn-angular.fr/article/4';
Observable<Article> article$ = this.http.put(url, JSON.stringify(article), options)
.map(() => article)
.catch(this.handleError);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment