How do I get data from web api in angularjs 7?
Answer / Rashmi Verma
You can use Angular's HttpClient module to make HTTP requests and retrieve data from a Web API in AngularJS 7. Here's an example: `import { HttpClient } from '@angular/common/http';nconstructor(private http: HttpClient) { } ngetData() { return this.http.get('api-url'); }`
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain basic steps to set up an angular js app?
What is the traceur compiler?
What is elementref?
How can you create a decorator in angular?
Explain ngif directive ?
How many scope can an application have?
What is factory method?
What is ngoninit ()?
What is polyfill in angular?
What is pipes?
What is rxjs?
What are the difference between @inject and @injectable?