Vue - Vue.js - VueJS
- is a MVVM PatternJavaScript framework for building User Interfaces (UI) and Single-Page Applications (SPA)
Setup
2 ways to set up Vue:
Static HTML File
Click here to expand...
<!DOCTYPE html> <html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="app">{{message}}</div> <script> const App = new Vue({ el: '#app', data: { message: 'Hello Vue!', }, }) </script> </body> </html>
Node.js Project
Click here to expand...
install vue-cli
npm i -g @vue/cli @vue/cli-service-globalcreate Vue App
vue create vue-apprun vue app
cd vue-app npm run serve