Zum Hauptinhalt springen
ProdukteDesktop-WerkzeugeTASTECADZeichnungsprüfungTASTEFILESDateiverwaltungTASTEFTPDateiübertragungTASTESSHRemote-ArbeitsbereichTASTEZIPKomprimieren und EntpackenTASTEWINMDateiverwaltungEntwicklerwerkzeugeTASTECODEIntegrierte Entwicklungsumgebung für RustTASTESTUDIOIntegrierte Entwicklungs- und TestumgebungTASTEETLDatenintegration (ETL)ServerTASTEREMOTERemote-Desktop-ServerTASTEGEOGeodatenserverTASTEMAILE-Mail-ArbeitsbereichInvestierenTASTESTOCKDesktop-App für automatischen AktienhandelErste SchritteDownloadsDokumentationKaufenAlle Produkte
Marktplatz
Neuigkeiten
TechnikNeuigkeitenEntwickler-News von heuteEntwicklerdokuProgrammiersprachenRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb-Frontend-FrameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer-FrameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp- & Desktop-FrameworksTauriFlutterReact NativeElectronAlgorithmenAlgorithmus-GrundlagenKernalgorithmenFortgeschrittene AlgorithmenAlgorithmen für die Praxis
CommunityProjekteEntwicklungslogsPromptsProbleme mit KI-ToolsShowcaseCommunity-Leitfaden
ZusammenarbeitWissenstransferWebsite-AufbauDesktop-App-AufbauRelease- und ZahlungspipelineVertriebspartnerKontakt
DiensteRemote-DesktopIndividuelle Installationspakete
TASTEDEV
Produkte

Desktop-Werkzeuge

TASTECADKomplexe Zeichnungen, mühelos geöffnetTASTEFILESNur die Dateien, die zählen – in BestzeitTASTEFTPDer aufgeräumteste Weg für Ihre DateienTASTESSHDie stärkere Verbindung zu Ihren ServernTASTEZIPSchneller packen, sicherer entpackenTASTEWINMEin tastaturorientierter Dateimanager mit zwei Fenstern

Entwicklerwerkzeuge

TASTECODERust-Apps bearbeiten, bauen, debuggen und testen – alles in einem FensterTASTESTUDIOVom Bearbeiten bis zu Remote-Tests und freigegebenen KI-KorrekturenTASTEETLDaten bewegen, die Werte im Blick

Server

TASTEREMOTEEin Remote-Desktop auf Ihrem eigenen ServerTASTEGEOEin GeoServer-kompatibler Geodatenserver, neu aufgebaut in RustTASTEMAILIhre E-Mail wieder in Ihrer Hand

Investieren

TASTESTOCKAutomatischer Aktienhandel nach Ihren Regeln: wann und was

Erste Schritte

DownloadsNeueste Versionen aller ProdukteDokuSo nutzen Sie jedes ProduktKaufenAbos und DauerlizenzenAlle ProdukteAlle Produkte im Überblick
Alle Produkte
MarktplatzNeuigkeiten
Technik

Neuigkeiten

Entwickler-News von heuteOffizielle Meldungen zu Sprachen, Frameworks, GitHub und KIEntwicklerdokuAnleitungen zu Sprachen, Frameworks und Algorithmen

Programmiersprachen

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web-Frontend-FrameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server-FrameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App- & Desktop-FrameworksTauriFlutterReact NativeElectron

Algorithmen

Algorithmus-GrundlagenKomplexitätsanalyse · Sortieren · Suchen · Grundlegende Datenstrukturen · Bäume und HeapsKernalgorithmenGraphtraversierung · Kürzeste Wege und minimale Spannbäume · Dynamische Programmierung · Greedy-Algorithmen · Teile und herrsche · BacktrackingFortgeschrittene AlgorithmenZeichenkettenalgorithmen · Mathematik und Zahlentheorie · Bitmanipulation · Segmentbäume · Union-FindAlgorithmen für die PraxisStrategie für Coding-Interviews · LRU-Cache · Rate Limiting · Konsistentes Hashing
Alle Entwicklungsdokumente
Community
ProjekteEntwickler und Projekte entdeckenEntwicklungslogsEntscheidungen und ErkenntnissePromptsWiederverwendbare AnweisungenProbleme mit KI-ToolsProbleme und Workarounds für Claude, Codex, GeminiShowcaseFertige ErgebnisseCommunity-LeitfadenWie wir offen entwickeln
Zusammenarbeit
WissenstransferNative Apps mit Rust und eguiWebsite-Aufbau10 Sprachen, Konten, Dokumentation und DownloadsDesktop-App-AufbauRust und egui, ohne WebViewRelease- und ZahlungspipelineSignatur, MSI, deb, rpm, AppImage, PrüfsummenVertriebspartnerEmpfehlen und 30 % erhaltenKontaktEntwicklung, Partnerschaft, Investition
Dienste
Remote-DesktopIhren Computer im Browser erreichenIndividuelle InstallationspaketeNur nötige Funktionen, Einstellungen vorab
Kaufen
DE
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Anmelden
Anmelden
TASTEDEV

Von kleinen Werkzeugen zu besserer Entwicklung.

support@tastedev.netTASTEDEV unterstützen
ProdukteProduktübersichtKaufenDokuDownloadsMarktplatzSupport
CommunityProjekteEntwicklungslogsPromptsProbleme mit KI-ToolsShowcase
RichtlinienÜber unsDatenschutzerklärungNutzungsbedingungenAbo-BedingungenRückerstattungCommunity-Richtlinien
KontoAnmeldenRegistrieren
Besucher
Heute
Gestern
Aufrufe gesamt
Firma
GXSOFT
Vertretungsberechtigt
CHOI YOUNG GU
Handelsregisternummer
853-44-00368
Anschrift
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefon
+82-10-4404-1523
E-Mail
whitecalvin@tastedev.net
Datenschutzbeauftragter
CHOI YOUNG GU

© 2026 TASTEDEVProduktinformationen basieren auf verifizierten Entwicklungsquellen.Veröffentlicht · wird verbessert

Vue.js · Nuxt-Dokumentation
Vue.js · Nuxt
Getting Started with Vue and NuxtProject StructureCore Concepts: SFCs, Reactivity, Components, Nuxt RoutingData and StateTestingBuild and Deployment
Diskussionen

Vue.js · Nuxt-Anleitung · 3/6

Core Concepts: SFCs, Reactivity, Components, Nuxt Routing

Dieses Kapitel ist vorerst nur auf Englisch verfügbar.

This chapter covers the ideas you need to read and write Vue code: single-file components, the reactivity APIs, template directives, props and emits, and Nuxt's file-based routing and auto-imports.

Single-file components and the Composition API

A .vue file is made of three blocks: <script setup>, <template> and <style>. <script setup> is the concise syntax for the Composition API; every variable, function and imported component declared inside it is available in the template. Adding scoped to the style block limits those styles to the current component.

Reactivity: ref, reactive, computed, watch

ref wraps any value in a reactive container that you read and write through .value in script code (templates unwrap it for you). reactive makes an object itself reactive. computed caches a value derived from other state, and watch runs side effects when a value changes.

<script setup lang="ts">
import { ref, reactive, computed, watch } from "vue";

const query = ref("");
const filter = reactive({ onlyDone: false });
const todos = ref([
  { id: 1, text: "Learn Vue", done: true },
  { id: 2, text: "Try Nuxt", done: false },
]);

const visible = computed(() =>
  todos.value
    .filter((t) => !filter.onlyDone || t.done)
    .filter((t) => t.text.includes(query.value)),
);

watch(query, (next, prev) => {
  console.log(`query: ${prev} -> ${next}`);
});
</script>

<template>
  <input v-model="query" placeholder="Search" />
  <label><input type="checkbox" v-model="filter.onlyDone" /> Done only</label>
  <ul>
    <li v-for="todo in visible" :key="todo.id">{{ todo.text }}</li>
  </ul>
  <p v-if="visible.length === 0">No results.</p>
</template>

Keep computed pure. Anything that touches the outside world, such as API calls or logging, belongs in watch or watchEffect.

Template directives

DirectiveShorthandWhat it does
v-bind:href:hrefBinds a value to an attribute
v-on:click@clickHandles an event
v-modelTwo-way binding between an input and state
v-if / v-elseConditional rendering
v-showToggles visibility with CSS only
Fragen zu diesem Kapitel?
Vorheriges KapitelProject StructureNächstes KapitelData and State
v-forRenders a list; always provide :key

Components, props and emits

Parents pass data down through props, and children report changes up through events (emits). With TypeScript, you type defineProps and defineEmits directly.

<!-- components/TodoItem.vue -->
<script setup lang="ts">
const props = defineProps<{ text: string; done?: boolean }>();
const emit = defineEmits<{ toggle: []; remove: [reason: string] }>();
</script>

<template>
  <li :class="{ done: props.done }">
    <input type="checkbox" :checked="props.done" @change="emit('toggle')" />
    {{ props.text }}
    <button @click="emit('remove', 'user')">Remove</button>
  </li>
</template>

A parent uses it as <TodoItem :text="todo.text" :done="todo.done" @toggle="todo.done = !todo.done" />. Props are read-only, so a child asks for changes by emitting events instead of mutating them. When you need two-way binding, defineModel() connects directly to the parent's v-model. To let a parent inject content, render a <slot />.

File-based routing in Nuxt

In Nuxt, the path of a file in pages/ becomes its URL. Square brackets mark dynamic parameters.

pages/index.vue        ->  /
pages/about.vue        ->  /about
pages/posts/[id].vue   ->  /posts/:id
<!-- pages/posts/[id].vue -->
<script setup lang="ts">
const route = useRoute();
definePageMeta({ layout: "default" });
</script>

<template>
  <h1>Post {{ route.params.id }}</h1>
  <NuxtLink to="/">Back to list</NuxtLink>
</template>

Placing <NuxtPage /> in app.vue renders the page that matches the current URL, and <NuxtLink> navigates without a full page load.

Auto-imports

Notice that the example above has no import statements. Nuxt automatically imports Vue APIs such as ref and computed, Nuxt composables such as useRoute and useFetch, components from components/, and functions from composables/ and utils/. A file at components/base/Button.vue is prefixed by its folder and becomes <BaseButton>. If you prefer explicit imports, you can still write import { ref } from "#imports".

Summary

  • Everything declared in <script setup> is usable in the template.
  • Use ref through .value and reactive as a plain object; put derived values in computed and side effects in watch.
  • Data flows down through props; changes flow up through emits.
  • Nuxt builds routes from file paths in pages/ and auto-imports APIs, components and composables.

0 Kommentare

Top-KommentareNeueste zuerst

Anmelden · Melde dich an, um einen Kommentar zu schreiben.