LU04b - VUE Basics

  1. Definition what a vue is
  2. Knowing the key features of vue
  3. Explaining the basic function how vue is working

Vue.js is a progressive JavaScript framework used for building user interfaces and single-page applications (SPAs). It focuses on the view layer, making it simple to integrate with other projects or libraries, while also providing powerful features for modern application development. Vue.js is known for its reactive data binding, component-based architecture, and ease of use, making it a popular choice for developers.

Vue is designed to be incrementally adoptable. Developers can start by adding it to a small part of an existing application, or they can use Vue to build entire web apps from scratch. Its lightweight nature and flexibility make it suitable for projects of all sizes.

Declarative Rendering: Use Vue's syntax to bind dynamic data directly into HTML.

  • Reactivity: When the data changes, the DOM updates automatically.
  • Components: Modular and reusable building blocks of the interface.
  • Directives: Special attributes that extend HTML functionality, like v-bind, v-if, and v-for.
  • Vue CLI: A powerful tool to scaffold and manage Vue applications efficiently.

In Vue.js, Single File Components (SFCs) are a core feature that enables developers to encapsulate the structure, style, and logic of a component within a single .vue file. This approach improves maintainability, readability, and scalability in modern web development by organizing all the component-related code in one place.

A typical Vue SFC consists of three sections:

  1. <template>: Contains the HTML structure for the component. This section defines how the component is displayed in the DOM.
  2. <script>: Contains the JavaScript logic for the component, including the component's data, methods, computed properties, and lifecycle hooks.
  3. <style>: Contains the CSS specific to the component, allowing you to style the component's elements. By default, these styles are global, but adding the scoped attribute makes them apply only to this component.

Hello.vue mit SFC

English German
to streamline beschleunigen, optimieren
incrementally adoptable Schrittweise anwendbar
to provide bereitstellen
to deploy ausliefern
to enable befähigen
to scafold stützen

Volkan Demir

  • en/modul/m291/learningunits/lu04/theorie/02.txt
  • Zuletzt geändert: 2025/01/22 12:14
  • von vdemir