Getting started with Angular2 requires quite a bit of setup. We need to install a few tools globally to get started. Let’s get started.
‘Resolve’ comes to our rescue when we want to fetch some data or check some condition before loading the view. Resolve is a list of tasks that should be done before the controller instantiates or the view is loaded.
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.