Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Vue JS 3: The Composition API (Inc Script Setup, TypeScript)
Rating: 4.4 out of 5(764 ratings)
3,785 students

Vue JS 3: The Composition API (Inc Script Setup, TypeScript)

Learn Vue.js 3 with TypeScript, the Composition API and Pinia (2022)
Created byLachlan Miller
Last updated 3/2023
English
German [Auto],English [Auto],

What you'll learn

  • Vue js 3
  • TypeScript
  • Unit Testing
  • Composition Fundamentals
  • New Reactivity System
  • Design Patterns

Course content

7 sections79 lectures6h 12m total length
  • Introduction to Course and Lecturer!3:51
  • Resources0:06

    Here's the completed source code: https://github.com/lmiller1990/vuejs-composition-api-v3

    I'd recommend writing the code from scratch. It's the best way to learn! Good luck and have fun!

  • Installation and Configuration2:05

    Install Node.js version 16 and create a Vue template with npm init for TypeScript support. Install dependencies, start dev, and verify on localhost 3000 with VS Code Vue language features.

  • Bulma CSS0:16

    This lectures introduces Bulma.css. We use it via a CDN link. You can find the documentation for Bulma here: https://bulma.io.

  • Vue Single File Components6:51

    Explore Vue single-file components by building first component within the script, template, and style sections. Import, mount, and use setup with TypeScript, and apply Bouma styling for a clean UI.

  • Directives - Loops with v-for2:23

    Explore directives in Vue 3 by looping over a periods array with v-for, rendering values via interpolation, and keeping data in the script for a cleaner template.

  • Bindings with v-bind3:12
  • Events and Reactivity4:31

    Explore how to build interactivity with Vue 3's composition API by wiring events with v-on, using ref for reactive state, and dynamically updating the DOM based on the selected period.

  • More on Events3:06

    Explore handling view events with v-on and the at shorthand to select a period today, this week, or this month, and bind reactivity to update the template.

  • Reactivity with Ref5:00
  • Type Safety with TypeScript4:21

    Define a period type, including today, this week, and this month, to enforce type safety and derive it from a const periods array.

  • DateTimes with Luxon6:07

    install luxon in a Vue 3 Composition API project, create ISO timestamp test posts, and format dates with Luxon to render posts and set up period filtering.

  • Derived Data with Computed5:19

    Derive a filtered posts list using the composition API's computed property. React to the selected period (today, this week, this month) and filter posts by their created time.

  • Passing Data with Props and a Refactor7:12

    Refactor the timeline into a timeline item view, pass posts via props using script setup and define props, and define a timeline post interface with a date time type.

Requirements

  • Modern JavaScript
  • Some Vue 2 experience will be a plus!

Description

(RE-RECORDED JULY 2022, UPDATED OCT 2020 w/ TESTING)

Vue.js 3 and the Composition API is here!

Learn to build a complex, real world application with the Composition API, TypeScript, Pinia and Vue Router, taught by Lachlan Miller. maintainer of Vue Test Utils and Vue.js team member. This is an intermediate-advanced course aimed at developers with some basic programming experience with tools such ES6 JavaScript.

We move fast and introduce all the required topics to build highly dynamic, complex single page apps with Vue.js 3 and the new Composition API.

Unlike other courses, testing and design patterns are at the core of everything we do. We explore the new features Vue.js 3 brings to the table. Some of the things you'll learn:

- How to use and test new Vue 3 components with Cypress and Test Utils

- Building reusable modules using the new reactivity API

- TypeScript to create type safe applications

- Creating a complex, real-time markdown editor

- Integrating third party libraries from npm

- Implementing authentication and authorisation with JWT (JSON Web Tokens) and cookies

- Routing, include navigation guards with Vue Router 4

- Writing and testing complex interactions (Vitest, Vue Test Utils)

- A real back end with Express and TypeScript

This is an intermediate to advanced course; some basic programming knowledge is required. I respect your time and have packed as much content into the course as possible. Rather than explaining the same basic concepts 10 times over, move quickly and see the same concepts applied in different contexts to reinforce them.

Who this course is for:

  • Vue 2 developers looking to learn Vue 3
  • Intermediate front-end developers