text
stringlengths
2.79k
27.3k
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/quick-start.md. Please understand it and learn it to generate quality code in the future. [/INST] --- footer: false --- # Quick Start {#quick-start} ## Try Vue Online {#try-vue-online} - To quickly get a taste of Vu...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/introduction.md. Please understand it and learn it to generate quality code in the future. [/INST] --- footer: false --- # Introduction {#introduction} :::info You are reading the documentation for Vue 3! - Vue 2 su...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/components/async.md. Please understand it and learn it to generate quality code in the future. [/INST] # Async Components {#async-components} ## Basic Usage {#basic-usage} In large applications, we may need to divide...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/components/attrs.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Fallthrough Attributes {#fallthrough-attributes} > This page assumes you've already read ...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/components/events.md. Please understand it and learn it to generate quality code in the future. [/INST] <script setup> import { onMounted } from 'vue' if (typeof window !== 'undefined') { const hash = window.locatio...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/components/registration.md. Please understand it and learn it to generate quality code in the future. [/INST] # Component Registration {#component-registration} > This page assumes you've already read the [Components ...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/components/slots.md. Please understand it and learn it to generate quality code in the future. [/INST] # Slots {#slots} > This page assumes you've already read the [Components Basics](/guide/essentials/component-basic...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/components/v-model.md. Please understand it and learn it to generate quality code in the future. [/INST] # Component v-model {#component-v-model} `v-model` can be used on a component to implement a two-way binding. F...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/components/props.md. Please understand it and learn it to generate quality code in the future. [/INST] # Props {#props} > This page assumes you've already read the [Components Basics](/guide/essentials/component-basic...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/components/provide-inject.md. Please understand it and learn it to generate quality code in the future. [/INST] # Provide / Inject {#provide-inject} > This page assumes you've already read the [Components Basics](/gui...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/scaling-up/ssr.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Server-Side Rendering (SSR) {#server-side-rendering-ssr} ## Overview {#overview} ### What ...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/scaling-up/testing.md. Please understand it and learn it to generate quality code in the future. [/INST] <script setup> import { VTCodeGroup, VTCodeGroupTab } from '@vue/theme' </script> # Testing {#testing} ## Why T...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/scaling-up/sfc.md. Please understand it and learn it to generate quality code in the future. [/INST] # Single-File Components {#single-file-components} ## Introduction {#introduction} Vue Single-File Components (a.k....
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/scaling-up/state-management.md. Please understand it and learn it to generate quality code in the future. [/INST] # State Management {#state-management} ## What is State Management? {#what-is-state-management} Techni...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/scaling-up/routing.md. Please understand it and learn it to generate quality code in the future. [/INST] # Routing {#routing} ## Client-Side vs. Server-Side Routing {#client-side-vs-server-side-routing} Routing on th...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/scaling-up/tooling.md. Please understand it and learn it to generate quality code in the future. [/INST] # Tooling {#tooling} ## Try It Online {#try-it-online} You don't need to install anything on your machine to tr...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/conditional.md. Please understand it and learn it to generate quality code in the future. [/INST] # Conditional Rendering {#conditional-rendering} <div class="options-api"> <VueSchoolLink href="https://vu...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/reactivity-fundamentals.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Reactivity Fundamentals {#reactivity-fundamentals} :::tip API Preferenc...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/forms.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- <script setup> import { ref } from 'vue' const message = ref('') const multilineText = ref('...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/component-basics.md. Please understand it and learn it to generate quality code in the future. [/INST] # Components Basics {#components-basics} Components allow us to split the UI into independent and reusa...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/template-syntax.md. Please understand it and learn it to generate quality code in the future. [/INST] # Template Syntax {#template-syntax} Vue uses an HTML-based template syntax that allows you to declarati...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/template-refs.md. Please understand it and learn it to generate quality code in the future. [/INST] # Template Refs {#template-refs} While Vue's declarative rendering model abstracts away most of the direct...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/application.md. Please understand it and learn it to generate quality code in the future. [/INST] # Creating a Vue Application {#creating-a-vue-application} ## The application instance {#the-application-ins...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/event-handling.md. Please understand it and learn it to generate quality code in the future. [/INST] # Event Handling {#event-handling} <div class="options-api"> <VueSchoolLink href="https://vueschool.io/...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/class-and-style.md. Please understand it and learn it to generate quality code in the future. [/INST] # Class and Style Bindings {#class-and-style-bindings} A common need for data binding is manipulating an...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/computed.md. Please understand it and learn it to generate quality code in the future. [/INST] # Computed Properties {#computed-properties} <div class="options-api"> <VueSchoolLink href="https://vueschool...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/watchers.md. Please understand it and learn it to generate quality code in the future. [/INST] # Watchers {#watchers} ## Basic Example {#basic-example} Computed properties allow us to declaratively compute...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/list.md. Please understand it and learn it to generate quality code in the future. [/INST] # List Rendering {#list-rendering} <div class="options-api"> <VueSchoolLink href="https://vueschool.io/lessons/li...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/essentials/lifecycle.md. Please understand it and learn it to generate quality code in the future. [/INST] # Lifecycle Hooks {#lifecycle-hooks} Each Vue component instance goes through a series of initialization steps...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/typescript/composition-api.md. Please understand it and learn it to generate quality code in the future. [/INST] # TypeScript with Composition API {#typescript-with-composition-api} > This page assumes you've already ...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/typescript/options-api.md. Please understand it and learn it to generate quality code in the future. [/INST] # TypeScript with Options API {#typescript-with-options-api} > This page assumes you've already read the ove...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/typescript/overview.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Using Vue with TypeScript {#using-vue-with-typescript} A type system like TypeScript c...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/built-ins/suspense.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Suspense {#suspense} :::warning Experimental Feature `<Suspense>` is an experimental fe...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/built-ins/transition-group.md. Please understand it and learn it to generate quality code in the future. [/INST] <script setup> import ListBasic from './transition-demos/ListBasic.vue' import ListMove from './transitio...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/built-ins/keep-alive.md. Please understand it and learn it to generate quality code in the future. [/INST] <script setup> import SwitchComponent from './keep-alive-demos/SwitchComponent.vue' </script> # KeepAlive {#ke...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/built-ins/teleport.md. Please understand it and learn it to generate quality code in the future. [/INST] # Teleport {#teleport} <VueSchoolLink href="https://vueschool.io/lessons/vue-3-teleport" title="Free Vue.js Tel...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/built-ins/transition.md. Please understand it and learn it to generate quality code in the future. [/INST] <script setup> import Basic from './transition-demos/Basic.vue' import SlideFade from './transition-demos/Slide...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/extras/composition-api-faq.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Composition API FAQ {#composition-api-faq} :::tip This FAQ assumes prior experi...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/extras/reactivity-transform.md. Please understand it and learn it to generate quality code in the future. [/INST] # Reactivity Transform {#reactivity-transform} :::danger Deprecated Experimental Feature Reactivity Tra...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/extras/render-function.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Render Functions & JSX {#render-functions-jsx} Vue recommends using templates to bu...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/extras/animation.md. Please understand it and learn it to generate quality code in the future. [/INST] <script setup> import ElasticHeader from './demos/ElasticHeader.vue' import DisabledButton from './demos/DisabledBu...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/extras/ways-of-using-vue.md. Please understand it and learn it to generate quality code in the future. [/INST] # Ways of Using Vue {#ways-of-using-vue} We believe there is no "one size fits all" story for the web. Thi...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/extras/web-components.md. Please understand it and learn it to generate quality code in the future. [/INST] # Vue and Web Components {#vue-and-web-components} [Web Components](https://developer.mozilla.org/en-US/docs/...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/extras/reactivity-in-depth.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- <script setup> import SpreadSheet from './demos/SpreadSheet.vue' </script> # Reac...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/extras/rendering-mechanism.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Rendering Mechanism {#rendering-mechanism} How does Vue take a template and tur...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/reusability/composables.md. Please understand it and learn it to generate quality code in the future. [/INST] # Composables {#composables} <script setup> import { useMouse } from './mouse' const { x, y } = useMouse() ...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/reusability/custom-directives.md. Please understand it and learn it to generate quality code in the future. [/INST] # Custom Directives {#custom-directives} <script setup> const vFocus = { mounted: el => { el.fo...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/reusability/plugins.md. Please understand it and learn it to generate quality code in the future. [/INST] # Plugins {#plugins} ## Introduction {#introduction} Plugins are self-contained code that usually add app-lev...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/best-practices/accessibility.md. Please understand it and learn it to generate quality code in the future. [/INST] # Accessibility {#accessibility} Web accessibility (also known as a11y) refers to the practice of crea...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/best-practices/production-deployment.md. Please understand it and learn it to generate quality code in the future. [/INST] # Production Deployment {#production-deployment} ## Development vs. Production {#development-v...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/best-practices/performance.md. Please understand it and learn it to generate quality code in the future. [/INST] --- outline: deep --- # Performance {#performance} ## Overview {#overview} Vue is designed to be perfo...
<s>[INST] The following document is part of the VueJS documentation, in the file vuejs_docs/src/guide/best-practices/security.md. Please understand it and learn it to generate quality code in the future. [/INST] # Security {#security} ## Reporting Vulnerabilities {#reporting-vulnerabilities} When a vulnerability is r...