Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular http PUT

ngOnInit() {
    const body = { title: 'Angular PUT Request Example' };
    this.http.put<any>('https://jsonplaceholder.typicode.com/posts/1', body)
        .subscribe(data => this.postId = data.id);
}
Source by jasonwatmore.com #
 
PREVIOUS NEXT
Tagged: #angular #http #PUT
ADD COMMENT
Topic
Name
6+9 =