Angular - HTTP Client
You want to load a list of users from an API and display them in your Angular component. Which approach correctly combines GET request and updating the component's state?
this.users for display.this.http.get('api/users').subscribe(users => this.users = users); in ngOnInit -> Option B15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions