Load json data to component in Vue

In this tutorial, we will see how we can load JSON data to a component in Vue.js. I am going to use following REST API end point to load data
http://ilikecoding.net/membership/public/api/memberships and show them in Vue component

This is the html template which we are going to use and you can see js libs in head section

Under scripts section you can add the following code

Under mounted() you can see the getJSON() to load the data from the REST end point