Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:modul:m291:learningunits:lu04:theorie:02 [2025/01/22 12:01] – vdemir | en:modul:m291:learningunits:lu04:theorie:02 [2025/01/22 12:14] (aktuell) – [Example of a SFC] vdemir | ||
---|---|---|---|
Zeile 9: | Zeile 9: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * | + | |
===== What is Vue.js? ==== | ===== 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.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, | ||
Zeile 32: | Zeile 32: | ||
- < | - < | ||
- | ==== Example of a SFC ==== | + | {{:en:modul:m291:learningunits:lu04:theorie:vue-component.png? |
- | < | + | |
- | <div class=" | + | |
- | <h1>{{ title }}</ | + | |
- | < | + | |
- | <button @click=" | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | export default { | + | |
- | name: ' | + | |
- | data() { | + | |
- | return { | + | |
- | title: ' | + | |
- | }; | + | |
- | }, | + | |
- | methods: { | + | |
- | changeTitle() { | + | |
- | this.title = 'Title Changed!'; | + | |
- | } | + | |
- | } | + | |
- | }; | + | |
- | </ | + | |
- | + | ||
- | <style scoped> | + | |
- | .hello { | + | |
- | text-align: center; | + | |
- | margin: 20px; | + | |
- | } | + | |
- | button { | + | |
- | background-color: #42b983; | + | |
- | color: white; | + | |
- | border: none; | + | |
- | padding: 10px 15px; | + | |
- | cursor: pointer; | + | |
- | | + | |
- | button: | + | |
- | background-color: | + | |
- | | + | |
- | </ | + | |
- | + | ||
===== Vocabulary ===== | ===== Vocabulary ===== | ||
^ English ^ German ^ | ^ English ^ German ^ |