Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| en:modul:m291:learningunits:lu04:theorie:02 [2025/01/21 11:24] – angelegt vdemir | en:modul:m291:learningunits:lu04:theorie:02 [2025/01/22 12:14] (aktuell) – [Example of a SFC] vdemir | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== LU04b - v-bind - TBD ====== | + | ====== LU04b - VUE Basics ===== |
| + | |||
| + | ===== Learning objectives ===== | ||
| + | - Definition what a vue is | ||
| + | - Knowing the key features of vue | ||
| + | - Explaining the basic function how vue is working | ||
| + | |||
| + | ===== Source ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== What is Vue.js? ==== | ||
| + | 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, | ||
| + | |||
| + | Vue is designed to be incrementally adoptable. Developers can start by adding it to a small part of an existing application, | ||
| + | |||
| + | ===== Key Features of Vue.js ===== | ||
| + | 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, | ||
| + | * Vue CLI: A powerful tool to scaffold and manage Vue applications efficiently. | ||
| + | |||
| + | ===== Single file Components (SFC) in Vue.js | ||
| + | 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, | ||
| + | |||
| + | ==== Structure of a Single File Component ==== | ||
| + | A typical Vue SFC consists of three sections: | ||
| + | |||
| + | - < | ||
| + | - < | ||
| + | - < | ||
| + | |||
| + | {{: | ||
| + | ===== Vocabulary ===== | ||
| + | ^ English ^ German ^ | ||
| + | | to streamline | beschleunigen, | ||
| + | | incrementally adoptable | Schrittweise anwendbar| | ||
| + | | to provide | bereitstellen | | ||
| + | | to deploy | ausliefern | | ||
| + | | to enable | befähigen | | ||
| + | | to scafold | stützen | | ||
| + | |||
| + | ---- | ||
| + | [[https:// | ||
| + | |||
| + | |||