Other documents:
Getting Started
In deep
‣
Scaffolding, Structure and Components
Create components
- Binding:
- Establishing a connection between a data source (like variables or properties) and a target (such as HTML attributes or text content).
- Component:
- A self-contained and reusable UI element in Vue.js. Components encapsulate their own logic, template, and styles.
- Computed Property:
- A computed property is a property in a Vue component that is calculated based on other properties and reacts to changes in those properties. Computed properties are cached and only re-evaluated when their dependencies change. ****
- Directive:
- Special attributes in Vue.js templates that enable declarative rendering and manipulation of the DOM. Example: The
v-if
directive conditionally renders an element based on a given condition.
- Dynamic Components:
- Dynamic components allow you to switch between different components dynamically based on conditions. They are particularly useful for building complex interfaces with conditional rendering. A dynamic component can be used to render different types of form inputs based on user selections.
- Event Handling:
- Event handling in Vue.js involves listening for and responding to DOM events triggered by user interactions, such as clicks or key presses.
- Lifecycle Hooks:
- Special methods in Vue components that allow developers to perform actions at specific stages of a component's life cycle.
- Mixins:
- Mixins are reusable code snippets or functionality that can be shared among different Vue components. They allow you to extend components with pre-defined options. You can use a mixin to add certain methods or computed properties to multiple components without duplicating code.
- Plugin:
- A plugin is an external package that extends the functionality of Vue.js. pr Javascript. Plugins can add global methods, directives, or components to your application.
- Prop:
- Data passed from a parent component to a child component. It allows parent components to communicate with and control their children..
- Scoped Styles:
- Are styles that are scoped to a specific Vue component. They prevent styles from affecting other components. Styles defined in the
<style>
section of a single-file component are automatically scoped to that component.
- State Management:
- The management of application data and its changes. In Vue.js, state management is often handled using libraries like Vuex.
- Template:
- The HTML-based structure in Vue.js that defines how a component should render its UI. Vue templates use mustache syntax
{{ }}
for data interpolation.