#todayilearned

by @jm3 · aka John Manoogian3

Frequent, bite-size mini-milestone updates as I fast-forward merge* my front-end web development skills up to 2019 levels. Learn more

Vue ViewModel instances

Posted at — Jun 5, 2019

When defining the ViewModel object in Vue.js, there are five core elements in the object:

  1. el - the base DOM element to mount the Vue ViewModel
  2. data
  3. methods
  4. computed properties
  5. watch

Read the [docs][docs].

NOTE: Don’t confuse the five elements of Vue with the Four Elements of hip-hop: Breaking, DJ’ing, Graffiti, and Rapping.