A collection of simple demos based on Vue.js.
A simple demo of Vue.js(version 1.x)
In addition, communication between father and child components:
father -> child : By defining props in child components;
child -> father : Publish-subscribe patterns.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
A Vue.js project
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
For a detailed explanation on how things work, check out the guide and docs for vue-loader.
a simple shoppingcart demo of vue2.0 including class and style bindings, conditional rendering, list rendering, event handling, form input bindings and filters.
no npm related packages, just reference the CDN files
based on vue@2.5.13 and webpack@3.12.0
You can view in browser by running the index.html
# install dependencies
npm install
# serve with hot reload at localhost:8000
npm run dev
# build for production with minification
npm run build