WATCHERS

  • They are all these different components that we will be using to build out our application .These components that are the extensions of the vue instance(that we have).

    ../../_images/120.png
  • So, calculations in javascript are relatively cheap , but to reach into the DOM is expensive. So, we will do as much as calculation in virtual DOM before we bring it over to the DOM itself. It’s really really fast and does a lot of logic.

Let’s look at this vue instance in little deep-

  • so,if I have message as ‘this is initial message’ and othermessage as ‘this is another message’. I’m going to console.log the VM (short of vue-model).

../../_images/217.png ../../_images/317.png