Movatterモバイル変換


[0]ホーム

URL:


Menu
×
Sign In
+1 Get Certified For Teachers Spaces Plus Get Certified For Teachers Spaces Plus
   ❮   
     ❯   

Vue Tutorial

Vue HOMEVue IntroVue DirectivesVue v-bindVue v-ifVue v-showVue v-forVue EventsVue v-onVue MethodsVue Event ModifiersVue FormsVue v-modelVue CSS BindingVue Computed PropertiesVue WatchersVue Templates

Scaling Up

Vue Why, How and SetupVue First SFC PageVue ComponentsVue PropsVue v-for ComponentsVue $emit()Vue Fallthrough AttributesVue Scoped StylingVue Local ComponentsVue SlotsVue v-slotVue Scoped SlotsVue Dynamic ComponentsVue TeleportVue HTTP RequestVue Template RefsVue Lifecycle HooksVue Provide/InjectVue RoutingVue Form InputsVue AnimationsVue Animations with v-forVue BuildVue Composition API

Vue Reference

Vue Built-in AttributesVue Built-in ComponentsVue Built-in ElementsVue Component InstanceVue DirectivesVue Instance OptionsVue Lifecycle Hooks

Vue Examples

Vue ExamplesVue ExercisesVue QuizVue SyllabusVue Study PlanVue ServerVue Certificate

VueExamples


Introduction to Vue

Vue Basics Explained

Thev-bind Directive

Bind a<div> element to a classBind an<img> element to an image fileChange the font sizeChange the font size in a different wayChange the font size in yet a different wayChange the background colorUsev-bind and a JavaScript condition to change the background colorBind a<div> element to a classBind a<div> element to a class, conditionallyBind a<div> element to a class, conditionally, with a data propertyUse thev-bind short handChange opacity to reveal an image using an input range elementAssign a class when images created withv-for are clickedWe see that CSS rules set withclass andv-bind:class are mergedMore than one class can be set withv-bind:class, with comma separationCSS rules are defined withv-bind:style, using both camel case and kebab case notationClasses are assigned with array syntax
v-bind Explained

Thev-if Directive

v-if Explained

Thev-show Directive

v-show Explained

Thev-for Directive

v-for Explained

Thev-on Directive

v-on Explained

Methods

Methods Explained

Event Modifiers

Event Modifiers Explained

Thev-model Directive

v-model Explained

Computed Properties

Computed Properties Explained

Watchers

Watchers Explained

Templates

Templates Explained

SFC Pages

SFC Pages Explained

Components

Components Explained

Props

Props Explained

Emit

Emit Explained

Fallthrough Attributes

Fallthrough Attributes Explained

Scoped Styling

Scoped Styling Explained

Local Components

Local Components Explained

Slots

Slots Explained

Dynamic Components

Dynamic Components Explained

Teleport

Teleport Explained

HTTP Requests

HTTP Requests Explained

Template Refs

Template Refs Explained

Lifecycle Hooks

Lifecycle Hooks Explained

Provide/Inject

Provide/Inject Explained

Routing

Routing Explained

Animations

A<div> element is rotated with the CSStransition propertyA circular<div> element bounces left-to-right with the CSS@keyframes propertyA<p> element is toggled with a buttonA<p> element inside the<Transition> component fades out when it is removedA<p> element slides in and out when it is toggledA<p> element has separate background colors during 'enter' and 'leave'<p> elements are animated differently, using thename prop to differentiate the<Transition> componentsTheafter-enter event triggers a<div> element to be displayedA toggle button triggers theenter-cancelled eventTheappear prop starts the<p> element animation right after the page is loadedFlip through images with animation on 'enter' and 'leave'. A new image is added before the old image is removedFlip through images with animation on 'enter' and 'leave'. Themode="out-in" prevents new images to be added until the old image is removedSwitching between components is animated
Animations Explained

Animations withv-for

Animations with v-for Explained

The Composition API

Composition API Explained

 
Track your progress - it's free!
 

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted ourterms of use,cookie and privacy policy.

Copyright 1999-2025 by Refsnes Data. All Rights Reserved.W3Schools is Powered by W3.CSS.


[8]ページ先頭

©2009-2025 Movatter.jp