Tìm hiểu về Vuejs

Comienza Ya. Es Gratis
ó regístrate con tu dirección de correo electrónico
Tìm hiểu về Vuejs por Mind Map: Tìm hiểu về Vuejs

1. Computed property và watcher

1.1. Computed property.

1.1.1. Cú Pháp

1.1.1.1. khai báo computed property trong Vue.js thì cần đặt nó ở trong scope object computed

1.1.2. Computed vs Methods

1.1.2.1. computed được lưu vào cache và computed sẽ chỉ được thay đổi khi dữ liệu bên trong nó thay đổi.

1.1.3. Getter and Setter

1.2. Watcher.

1.2.1. Cú pháp

1.2.1.1. tên của watcher phải trùng với tên của data cần theo dõi

1.2.1.2. các watcher phải được đặt trong watch scope

1.3. So sánh Computed vs Watcher.

2. Class và style bindings

2.1. Classes Binding.

2.1.1. Cú pháp kiểu object

2.1.2. Cú pháp Array

2.2. Binding inline styles.

2.2.1. Kiểu Object

2.2.2. Kiểu array

3. Conditional rendering

3.1. v-if.

3.2. v-show.

4. Event handling

4.1. Listen to Events.

4.1.1. sử dụng v-on directive để lắng nghe các sự kiện từ phía DOM

4.2. Method Event Handlers.

4.2.1. tách phần code xử lý vào hàm và gọi hàm đó ở trên sự kiện

4.3. Event Modifiers.

4.4. Key modifiers.

4.5. Why listener in HTML.

5. Component

5.1. Component là gì?

5.2. Using Components.

5.2.1. Registration

5.2.2. Local Registration

5.2.3. DOM Template Parsing Caveats.

5.2.4. Data must be a function

5.2.5. Composing components

5.3. Props.

5.4. Non-Prop Attributes.

5.5. Custom Events.

5.6. x-template.

6. Instance

6.1. Khởi tạo

6.1.1. data, template, element, methods, callback,...

7. Template Syntax trong Vue.js

7.1. Interpolation: thêm một văn bản, nội dung, attribute ,.. vào các thẻ HTML bằng Vue.js

7.1.1. Text

7.1.1.1. Để bind data dưới dạng dữ liệu thô vào thẻ HTML

7.1.1.2. trong cặp dấu {{}} thì có thể sử dụng các hàm của javascript

7.1.2. Raw HTML

7.1.2.1. <tag v-html="data"></tag>

7.1.3. Attributes

7.1.3.1. <tag v-bind:attributeName="data"></tag>

7.1.4. Using JavaScript Expressions

7.1.4.1. Sử dụng các toán tử và câu lệnh điều kiện trong cặp dấu {{}}

7.2. Directives: là các attribute được thiết lập bằng các tiền tố v-

7.2.1. Arguments

7.2.2. Modifiers

7.2.3. Arguments

7.3. Shorthands.

7.3.1. v-bind

7.3.2. v-on

8. List rendering

8.1. v-for.

8.1.1. cú pháp

8.1.1.1. v-for="item in list"

8.2. Template v-for.

8.3. Object v-for.

8.3.1. dùng v-for để duyệt các phần tử bên trong object

8.4. Range v-for.

8.4.1. lặp dữ liệu với một số lần các định sẵn

8.5. v-for with v-if.

8.5.1. Khi dùng chung với v-if, v-for có độ ưu tiên cao hơn

8.6. Array change detection.

8.7. Displaying filtered or sorted results.

9. Form input binding

9.1. Basic Usage.

9.1.1. Text

9.1.2. Textarea

9.1.3. Checkbox

9.1.4. Radio

9.2. Value bindings.

9.3. Modifiers.

9.3.1. .lazy

9.3.2. .number

9.3.3. .trim

9.4. v-model với component.