filter() it all out

filter() it all out

JavaScript provides with another very helpful method, filter. And as the same suggests we can use it to filter out values form an array.

map() – JavaScript magic

map() – JavaScript magic

JavaScript provides us with a very helpful map method to work with arrays. It can be used to in scenarios where you want to perform an action on each of the elements of an array.

Getting started with Angular2

Getting started with Angular2

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

Resolve

‘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.

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.

SiteLock