Installation
-
@vue/cli tool npm install -g @vue/cli // installed under /usr/local/lib/node_modules/@vue
Create a new Vue project
vue create vue-demo
# vue -h for help
# preset: default (babel, eslint)
# package manager to use when installing dependencies: Yarn
cd vue-demo
yarn serve
# Use "vue ui" to start GUI mgmt console. Very cool!
Basics
-
v-bind (shorthand is :) Dynamically bind one or more attributes, or a component prop to an expression. or
-
v-on (@) <button @click=“doThis”>
-
v-slot (#)