- Basic Data Binding
- Setup Vue Devtools
Lists- Vue Event Listners
Attribute and Class BindingThe need for Computed Properties- Component 101
Component Within ComponentPractical Component Exercise #1: MessagePractical Component Exercise #2: ModalPractical Component Exercise #3: TabComponent Communication Example #1: Custom EventsComponent Communication Example #2: Event DispatcherNamed Slots in a NutshellSingle-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-ifon<template> v-elsev-else-if- Controlling Reusable Elements with key
- Conditional Group with
v-showv-ifvsv-showv-ifwithv-for
Resources
Vue Essentail Cheat Sheet
Vue 2 Docs