How to get the data from db?
Answer / Shuchi Garg
To get data from a database in AngularJS, you can use $http service which is an HTTP client used for sending HTTP requests. Here's an example of making a GET request: $http.get('<your-api-url>').then(function(response) { console.log(response.data); });
| Is This Answer Correct ? | 0 Yes | 0 No |
What is ng-app in angularjs?
Is angular 7 a framework?
What is providers in angular?
What does a router.navigate do?
Is angular difficult?
What's new in httpclient and httpclientmodule in angular?
what is linking function and type of linking function?
What angularjs 7?
How to update angular 4,5, 6 to angular 7?
What is the difference between a link and compile in angular?
How are angularjs prefixes $ and $$ used?
How can you get url parameters from angularjs controller?