Material for a Vue.js workshop I organize.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.
- Create a component
Question
and use it in App.vue - Add a required parameter
question
toQuestion
and pass a text from App.vue toQuestion
. - Use
v-for
to create a list ofQuestion
from an array in data. - Use the array key to show the question number.
- Add a
Choice
component that would show a possible answer in aQuestion
. Each answer should be provided by App.vue toQuestion
then toChoice
.