Answers for "angular http PUT"

0

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);
}
Posted by: Guest on October-17-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language