The page and its code

Two views of the same thing

The page is on top and its code is right under it. Type over a heading on the page and the code changes; change the code and the page follows. There is no copy to keep in step: they are the same file.

On a phone the code is left out to give the page room, and the tutor still explains what you tap.

<template>
  <h1>Hello {{ name }}</h1>
  <p v-if="open">We are open</p>
  <Button :href="link">Go</Button>
</template>

<script>
export default {
  data: () => ({ name: 'Ada', open: true, link: '/menu' })
}
</script>

The tutor

Click to understand

Select any element and the Learn section says what it is for, shows its tag as it is written, and explains each piece of Vue in it in plain words.

{{ }}v-ifv-for@click:propclass

Each explanation links to the right page of the official Vue guide, for when you want to read more. An element with no Vue in it is called plain HTML, with a word on what Vue would look like.

Try it · the syllabus

Nine tasks, nine ideas of Vue

One step at a time, from words on a page to a component of your own. Each task has a hint and a bit of example code. When your page shows it done, it ticks itself and the next one opens. Only what you add counts, and your progress is kept for each project on your device.

#The taskThe idea of VueIn the guide
1Change the words on the page{{ }} A template is HTML that Vue fills in.Template syntax ↗
2Add a Button<Button> A component is a part of the page made in a file of its own.Components ↗
3Give an element a classclass Style an element through a class.Class and style ↗
4Show a value from the scriptdata() Values in the script show on the page, and change it when they change.Reactivity ↗
5Show something only sometimesv-if An element is there only while a value is true.Conditional rendering ↗
6Repeat an element for a listv-for One element for each item of a list.List rendering ↗
7React to a click@click Do something when the visitor clicks.Event handling ↗
8Pass a value to a component:prop A colon makes a setting JavaScript.Props ↗
9Make a component of your ownimport Your own .vue file, used on the page.Components ↗

Ask the tutor

Stuck? Ask, right beside your code

Ask the tutor writes a question about the element you picked, or the task you are on, into the AI chat. You read it, change it if you like, and send it. The chat is free for everyone who is signed in.

A first lesson

From nothing to v-for in one class

  1. Open the Studio in a browser and sign in. There is nothing to install.
  2. Make a site from a template, the Blog or the Restaurant for example. It is a real Vue project, made for the student.
  3. Pick the Learn view. The page is on top, its code under it.
  4. Click around. The tutor says what each part is, and links to the guide.
  5. Do the first tasks: change the words, add a Button, give an element a class, then show a value from the script.
  6. Ask the tutor where it gets hard, about the element or the task.

For teachers

What a class gets

Only a browser

School computers and Chromebooks need nothing installed.

The code professionals write

Vue 3 single-file components, not a format made for teaching, so nothing has to be unlearned.

Work to share

Put the class in a team and share projects with it, or let each student keep their own.

Room to grow

After the nine tasks, the Develop view, Git and packages from npm are one click away.

Questions learners ask

No. The first task is changing words on a page. HTML and CSS come along as you go, and the tutor explains each part.

Vue 3, written as single-file components: the same .vue files professional Vue projects are made of.

You can start for free, and the AI tutor is free for everyone who is signed in. The pricing page shows what each plan includes.

Yes. Every project is a Vue project in Git. Publish it in one click, or export it and run it anywhere Vue runs.

It answers your questions. Ask the tutor writes a question into the chat for you to read and send, and the tasks only tick when your own page does them.