'How to fetch a data in flask to angular?

Is there a way I can fetch a data from flask and send it to angular?. The data will be use in one of my highcharts in angular.



Solution 1:[1]

Your question is a bit confusing, Angular is client-side, Flask is server-side.

Fetching data from server-side into client-side, can be done through RESTful APIs, so we assume that your Flask app has some defined APIs that we can deal with from Angular.

You can have a look at RESTful APIs on tutorialspoint.

After that, you have a look at declaring APIs in Flask.

Finally, check HttpClient module in Angular.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nimer Esam