In this tutorial, we will see how to use another important interface component, Tabs, using the $http function to load some content.

Getting ready

To accomplish this task, we will create a controller and use the get method of the $http function to retrieve the contents of a JSON file, but first, let’s create the JSON content.

We are still using the same code base of the previous example.

How to do it…

  1. Create a new JSON file and name it tab-content.json, and add the following code:
            "title": "Dynamic Title 1",
            "content": "Dynamic content 1"
            "title": "Dynamic Title 2",
            "content": "Dynamic content 2"