View on Github Pages https://jonburdon.github.io/vue-fundamentals-two/
- Demonstrate key fundamentals of a javascript framework in context of vue.js
- Refactor and extend tutorial code
- Develop understanding of javascript frameworks at a fundamental level
- Use minimum technologies possible to explore Vue eg no cli or node.js to build projects
- Start with a very simple code base, and then refactor / repurpose.
- HTML
- CSS
- Javascript
- Vue.js
Create a snap game using cat emojis by refactoring and using ideas from the tutorial code.
- Display 3 different cat images
- Display the above images in a random order
- Display one of the images again as a special 'snap' image
- Make the 3 images clickable, the one which matches the 'snap' image when clicked will generate a win
- Display the 3 images one at a time, with a 3 second pause
Stuck on step 1 of the plan! How to display 3 different images - See emojisnap2.js Line 9- Similar to above, how to display the data as html in line 3 of emojisnap3.js
- In emojisnap.html This is a refactored version of schrodingers-div.html to display one unclickable random cat emoji. In line 107 it also creates a variable matched to the index of the selected emoji. The idea was to use that variable to match the emoji selected.
- https://vuejs.org/v2/guide/
- Chrome Vue Devtools Extension
- Use this example Vue App on jsfiddle https://jsfiddle.net/chrisvfritz/50wL7mdz/
All code snippets originated from Vue Tutorials on:
Vue Tutorials from Official Vue Docs https://scrimba.com/p/pXKqta/