Getting ready

For this recipe, we will show a list of contacts. For now, we will load the data from a .json file. We will explore how to load remote data from a Representational State Transfer (REST) API in a later chapter.

Let's open the following URL and copy the generated JSON to a file called data.json at the root of the project. We will use this data to render the list of contacts. It returns a JSON object of fake user data at http://api.randomuser.me/?results=20.

Let's create a new app called universal-app.