- Basic Data Binding
- Setup Vue Devtools
Lists
- Vue Event Listners
Attribute and Class Binding
The need for Computed Properties
- Component 101
Component Within Component
Practical Component Exercise #1: Message
Practical Component Exercise #2: Modal
Practical Component Exercise #3: Tab
Component Communication Example #1: Custom Events
Component Communication Example #2: Event Dispatcher
Named Slots in a Nutshell
Single-Use Components and Inline Templates
Directive :
Attribute Name Prefixed with v- to indicate that they are special attribute provided by Vue. They are reactive that means keep the element attribute up-to-date with the property on the vue instance.
Example:
v-bind
v-if
v-else
v-show
v-for
v-on
To Attach Event Listner that invoke methods
v-model
To way binding between form input and vue app state
v-once
One time interpolations that don't update on data change
v-html
Double quotes interprests data as plain text. In order to interpret as html us v-html directive
Composition Of Components :
- All Vue Components are also vue instance.
Data and Methods Vue Instance :
- The properties in data are only reactive if they existed at the time of instance creation.
- Vue instance provide rich number of predefined propertied, methods which prefixed with $ to differentiate them from user defined properties.
API References
Lifecycle Methods:
-
beforeCreated
-
created
-
beforeMount
-
mounted
-
beforeUpdate
-
updated
-
beforeDestroy
-
destroyed
Template Syntax:
- Interpolations
- Directive
- Arguments
- Dynamic Arguments
- Modifiers
- Shorthands
Computed Properties and Watchers
- Computed Properties
- Computed Caching vs Methods
- Computed vs Watching Property
- Computed Setter
Classes and Style Bindings
- Binding HTML Classes
- Object Syntax
- Array Syntax
- With Components
- Binding Inline Styles
- Object Syntax
- Array Syntax
- Auto Prefixing
- Multiple Values
Conditional Rendering
v-if
- Conditional Group with
v-if
on<template>
v-else
v-else-if
- Controlling Reusable Elements with key
- Conditional Group with
v-show
v-if
vsv-show
v-if
withv-for
Resources
Vue Essentail Cheat Sheet
Vue 2 Docs