Chapter 2. The Vue instance

This chapter covers

  • Creating a Vue instance
  • Observing the Vue lifecycle
  • Adding data to a Vue instance
  • Binding data to markup
  • Formatting our output

Over the course of this book we’re going to build a complete web application: a webstore with product listings, a checkout process, an administrative interface, and more. The completed webstore may seem like it’s a long way off, especially if you’re new to web application development, but Vue allows you to start small, build on what you learn, and ship a sophisticated product in one smooth progression.

The key to Vue’s consistency at every stage of an application’s growth is the Vue instance. A Vue application is a Vue instance, Vue components are all Vue instances, ...

Get Vue.js in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.