Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get http request and store the response in a variable in angular

this.http.get("https://reqres.in/api/users/2").subscribe(data => {
  console.log(data);
  this.values = data;
}
 
PREVIOUS NEXT
Tagged: #http #request #store #response #variable #angular
ADD COMMENT
Topic
Name
5+5 =