in VueJS

VueJS CRUD: Instantiate Application

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

import Vue from 'vue'

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.

import VueRouter from 'vue-router' Vue.use(VueRouter) import VueResource

Upgrade to access all content on Paulund

Members unlock all tutorials and snippets

Access to all downloadable content

Access to code examples before others

Sign Up Now

Already a member? Login here

Subscribe To The Weekly Newsletter

Get weekly updates to your email