aitchnyu / vue-icfoss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue.js for bug-free interactive web pages

A workshop I'm taking at ICFOSS, Cusat.

Exercise 1

  • How to introduce in a page
  • Reactivity
  • Dev tools

Steps

  • Install Vue Devtools in Firefox or Chrome
  • Open Vue devtools for exercise_1_complete.html
  • Click root component
  • $vm0.message = 'Hello icfoss!'

Minified and dev version - size and speed, download

What happens without v-cloak?

Resources

Exercise 2

  • Binding data and inputs
  • Methods
  • Fetching data

Steps

  • randomName(function(name){console.log("name is", name)})
  • Text input - bind to model
  • Buttons - bind to method
  • reverse and fetchName

Resources

Excercise 3

  • Bootstrap 4
  • Usage of components
  • Data binding with number
  • v-for and :key
  • computed properties

Steps

  • Display table entries - bind to numbers
  • addNewItem - just push to array
  • total
  • costliest - sort by subtotal, just one value though
  • See the subtotal, total and costliest updating in real-time

Resources

About


Languages

Language:HTML 100.0%