Methods and Event Handling
  • References/JavaScript/Vue.js/Guide

Method Handler We can use the v-on directive to listen to DOM events:

2025-01-10 15:47:30
Building Large-Scale Apps
  • References/JavaScript/Vue.js/Guide

NEW: Get up and running with single file Vue components, hot-reload, lint-on-save and unit testing in minutes with

2025-01-10 15:47:30
Custom Directives
  • References/JavaScript/Vue.js/Guide

Basics In addition to the default set of directives shipped in core, Vue.js also allows you to register custom directives. Custom directives

2025-01-10 15:47:30
Conditional Rendering
  • References/JavaScript/Vue.js/Guide

v-if In string templates, for example Handlebars, we would write a conditional block like this:

2025-01-10 15:47:30
Class and Style Bindings
  • References/JavaScript/Vue.js/Guide

A common need for data binding is manipulating an element’s class list and its inline styles. Since they are both attributes, we can use v-bind to handle them:

2025-01-10 15:47:30
Data Binding Syntax
  • References/JavaScript/Vue.js/Guide

Vue.js uses a DOM-based templating implementation. This means that all Vue.js templates are essentially valid, parsable HTML enhanced with some special attributes. Keep that

2025-01-10 15:47:30
List Rendering
  • References/JavaScript/Vue.js/Guide

v-for We can use the v-for directive to render a list of items based on an Array. The v-for directive requires

2025-01-10 15:47:30
Overview
  • References/JavaScript/Vue.js/Guide

Vue.js (pronounced /vjuː/, like view) is a library for building interactive web interfaces. The goal of Vue.js is to provide the benefits of reactive

2025-01-10 15:47:30
Computed Properties
  • References/JavaScript/Vue.js/Guide

In-template expressions are very convenient, but they are really meant for simple operations only. Templates are meant to describe the structure of your view. Putting too much

2025-01-10 15:47:30
Custom Filters
  • References/JavaScript/Vue.js/Guide

Basics Similar to custom directives, you can register a custom filter with the global Vue.filter() method, passing in a

2025-01-10 15:47:30