As a beginner in AngularJS, I am facing a challenge in one of my applications where I need to integrate data from different services into my view. I am considering two approaches:
Directly making ajax calls to the service URLs using the
$http
service in AngularJSSending a request to a servlet from an AngularJS controller, which will then gather data from various services and consolidate the results into a single JSON format before sending it back to the Angular controller.
I would appreciate advice on the best approach in terms of performance and configurability.