Vue can also play without webpake and other scaffolding

Source: Internet
Author: User

    • Beginner, take the environment, ES6 also come, vuecil scaffolding also got, tuning wrong, follow the tutorial over and over again Kei ...
    • However, the actual development, what is written in the end is to package the package into software, in order to facilitate other people to modify the view, can not be packaged into JS file ...
    • Do you really want to miss Vue? No! No.
    • So, I did all these things.

Communications, the $el introduced on the Vue website are instanced elements, and var app=new Vue ({...}) App also refers to this instance object. So in not a lot of data, logic is not very complex, of course, I did not try to Vuex to manage the data, I heard very laborious.

Then the data interacts with each component to communicate, and that's what I'm doing.

var App,objarr,data;app=new  Vue (...); O Bjarr=new  Vue (...); Data=new  Vue (...); function DataS () {  app.data1=objarr.data1;  } // Success! 

So, I succeeded.

Vue can also play without webpake and other scaffolding

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.