Uses vue.js v2.0 and vue-router v2.0
- Forked from this demo using vue.js 1.x
- Demo on codepen
- clone or download zip of this repo
cd
to the upacked folder- run
npm install
- run http server of your choice (eg whs or SimpleHTTPServer)
Vue.js demo app
Uses vue.js v2.0 and vue-router v2.0
cd
to the upacked foldernpm install
like requested in #2
If the products data come from HTTP request, how could I do?
I'm a newbie of Vue.
here is my code , but it doesn't work.
var app = new Vue({ el: '#app', router: router, template: '<router-view></router-view>', mounted: function() { this.getData(); }, methods: { getData: function (event) { axios.get('http://localhost:5942/xxxx') .then(function (response) { products = response.data; console.log(products); }) .catch(function (error) { console.log(error); }); } } });
How do I save the changes to a database in the backend?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.