API call to get data
API call to get data
In our last post, we saw how to get data from a JSON file. In this post, we will see how to make an API call to get data. We will still be using ‘$http’, ‘$q’ & ‘promise’ and also learn error handling while making an http call.
‘The Star Wars API (SWAPI)‘ provides lots of API end-points to fetch star wars data. You can head over to the documentationsto get more details. The best part is that…
View On WordPress
















