Chapter 1. Introducing Vue.js
Listing 1.1. The JavaScript calculator: chapter-01/calculator.html
Listing 1.2. The Vue calculator: chapter-01/calculatorvue.html
Chapter 2. The Vue instance
Listing 2.1. Our first Vue application: chapter-02/first-vue.html
Listing 2.2. Adding data and a data binding: chapter-02/data-binding.html
Listing 2.3. Adding lifecycle hooks to our instance: chapter-02/life-cycle-hooks.js
Listing 2.4. Adding product data to our Vue instance: chapter-02/product-data.js
Listing 2.5. Adding product markup: chapter-02/product-markup.html
Listing 2.6. Adding product markup: chapter-02/product-markup-cont.html
Listing 2.7. Adding the formatPrice filter: chapter-02/format-price.js
Listing 2.8. Adding product markup: chapter-02/v-text-binding.html
Chapter 3. Adding interactivity
Listing 3.1. All we need is an array: chapter-03/add-array.js
Listing 3.2. The addToCart method: chapter-03/add-to-cart.js
Listing 3.3. A button to add products to the cart: chapter-03/button-product.js
Listing 3.4. Computing a user’s full name: chapter-03/computed.js
Listing 3.5. Computing the area of a rectangle: chapter-03/computed-rect.js
Listing 3.6. Computed properties and update event logging: chapter-03/area.html
Listing 3.7. The cartItemCount’s computed property: chapter-03/cart-item-count.js
Listing 3.8. Adding the cart indicator: chapter-03/cart-indicator.html
Listing 3.9. Adding availableInventory to our product: chapter-03/available-inventory.js