Vue3 Basic Tutorial
Introduction to the framework
Installing the framework
Component structure
Data object
Working with attributes
Executing code in views
Arrays
Objects
Working with methods
Attaching event handlers
Working with data inside methods
Auxiliary methods
Passing parameters to a method
Reactivity
Computed properties
Event modifiers
Terms and Conditions
Show by condition
Inverting the condition
Reactive condition
Toggling elements
Changing text when toggling
v-else directive
Challenging conditions
v-else-if directive
Conditional groups
v-show directive
Cycles
Iterating over arrays
Getting keys when iterating over arrays
Enumeration of objects
Iterating over a group of tags
Iterating through an array of objects
Cycle in range
Conditions in cycles
The key attribute
Array reactivity
Styles
Component styling
class attribute
Object with CSS classes
Object reactivity with CSS classes
Inline object with CSS classes
CSS classes via data
Styling via the style attribute
Forms
Two-way data binding to inputs
Getting form data by event
Working with textarea
Working with checkboxes
Array of checkbox values
Working with radio buttons
Working with selects
Formation of a select in a cycle
Blocking elements
Key modifiers
Form for adding array elements
Button to delete an array element
Button for deleting objects from an array
Form for editing an array of objects
Components
Introduction
Creating child components
Passing data to a component
Transfer of data of any type
Passing properties of the data object
Specifying the props type
Creating components in a loop
Unidirectional data flow
Event emission
Event parameters
Emitting an event on an attribute
Reactive removal of components
Reactive editing of components
Component for adding data