Structure Rundown of Vue.js App
Learn the structure of a Vue.js application.
The Vue
instance
Being a progressive framework, Vue.js can be plugged into any webpage so that it can govern the functionality of the whole page or a part of it. Like other front-end frameworks, Vue can be added as an instance to a webpage and all of its resources reside within that object. Every Vue.js application starts by initializing a Vue
instance. The Vue
instance is created as follows:
Press + to interact
var vm = new Vue({// options})
As seen above, Vue()
is a constructor that takes a JavaScript object ({...}
). The object that is passed to the Vue
constructor as an argument has a predefined structure that consists of some keys
...