How to get the data from db?



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

Post New Answer

More AngularJS Interview Questions

What is ng-app in angularjs?

1 Answers  


Is angular 7 a framework?

1 Answers  


What is providers in angular?

1 Answers  


What does a router.navigate do?

1 Answers  


Is angular difficult?

1 Answers  


What's new in httpclient and httpclientmodule in angular?

1 Answers  


what is linking function and type of linking function?

1 Answers  


What angularjs 7?

1 Answers  


How to update angular 4,5, 6 to angular 7?

1 Answers  


What is the difference between a link and compile in angular?

1 Answers  


How are angularjs prefixes $ and $$ used?

1 Answers  


How can you get url parameters from angularjs controller?

1 Answers  


Categories