VueJS CRUD: Instantiate Application

VueJS Crud

The main.js is the import file for webpack so this is the file that we need to bootstrap the application from.

First we need to import Vue which is simply done by using

This is because Vue has been loaded as a dependency by using NPM means we can simply import it.

Then we need to load in VueRouter and VueResource.

VueJS needs to be mounted to an element for which we're using #app created in the previous single page HTML . . .

Subscribe To Newsletter

Get weekly updates to your email