Courses / Specialisations & media / Vue.js Fundamentals

₹69Self-paced

Vue.js Fundamentals

Build a Vue 3 application with tested reactive state, routing and data loading.

  • Who it's for. JavaScript learners who can fetch JSON and build HTML forms and want to build their first component-based app with Vue.
  • Before you start. Prerequisite courses: JavaScript Programming, Web Foundations: HTML, CSS and Responsive Layouts.
  • 29 to 49 hours of study with practice
  • 8 modules, 49 lessons
  • 3 guided projects and a final project

What you'll learn

  • Build single-file components using template syntax for bindings, conditionals, lists, events, child components and slots.
  • Design component contracts with validated props, emitted events, defineModel and scoped slots.
  • Build accessible validated forms including a reusable field component.
  • Add Vue Router navigation with params and guards and shared state with Pinia.
  • Verify components, composables, stores, async views and the production build with Vitest and Vue Test Utils.

Skills you'll gain

  • Templates
  • components
  • Reactivity
  • Props
  • events
  • Composition API
  • Forms
  • Routing
  • state
  • Async data
  • Application tests

Tools you'll use

  • Vue 3.5
  • create-vue (Vite)
  • Vue Router
  • Pinia
  • Vitest
  • @vue/test-utils

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 3 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 2

    Templates and components to Reactivity

    Build and run a Vue single-file component project and use template syntax (bindings, conditionals, lists, events, child components and slots) to render state.

    You build: Guided project “Static catalogue UI with components”: Root component showing bound item data with conditional states.

  2. 02

    Modules 3 to 5

    Props and events to Forms

    Design component contracts: declare and validate props, keep data flow one-way, emit typed events, bind v-model with defineModel and expose data to the parent with scoped slots.

    You build: Guided project “Component library and composables”: Components with validated props, events and defineModel controls Two composables with cleanup and a provided setting.

  3. 03

    Modules 6 to 8

    Routing and state to Application tests

    Add client-side navigation with Vue Router (routes, params, navigation, guards) and shared state with Pinia stores, getters, actions and storeToRefs.

    You build: Guided project “Routed, stateful, data-backed app with tests”: Routes, a detail view with params and a guarded private route.

Full curriculum

8 modules and 49 lessons, 29 to 49 hours of study

01Templates and components6 lessons, 3 to 4 hours

Lessons

  • Scaffold a Vue project and read a single-file component
  • Interpolation and attribute binding with v-bind
  • Conditional rendering with v-if, v-else and v-show
  • List rendering with v-for and stable keys
  • Event handling with v-on and modifiers
  • Child components, slots and scoped styles

After this module you can

  • Create a project with the create-vue scaffolder, start the dev server and identify the script setup, template and style blocks of an SFC and what each does.
  • Display values with double-brace interpolation and bind attributes, classes and styles dynamically with the colon shorthand, and state why interpolation only accepts expressions.
  • Split a template into a child component imported in script setup, pass content through the default and named slots, and keep CSS local with the scoped attribute.
02Reactivity6 lessons, 3 to 4 hours

Lessons

  • State with ref and the .value rule
  • Reactive objects and the limits of destructuring
  • Derived state with computed
  • Reacting to changes with watch
  • watchEffect, flush timing and cleanup
  • Batched DOM updates and nextTick

After this module you can

  • Create primitive and object state with ref, read and write it with .value in script, and explain why the template needs no .value for top-level refs.
  • Create state with reactive, mutate nested properties, and explain why destructuring or reassigning a reactive object breaks the connection to the template.
  • Explain that Vue applies DOM updates asynchronously in one batch per tick and use nextTick to read the DOM after a state change.
03Props and events6 lessons, 3 to 4 hours

Lessons

  • Declaring and validating props with defineProps
  • One-way data flow and not mutating props
  • Emitting events with defineEmits
  • Reactive props destructure in Vue 3.5 and passing props to watchers
  • Two-way binding on components with defineModel
  • Scoped slots that pass data to the parent

After this module you can

  • Declare props with types, required flags and defaults using defineProps and predict the console warning for a wrong type or missing required prop.
  • Explain why a child must not assign to a prop and apply the two sanctioned patterns: a local ref copy for an initial value and a computed for a transformed value.
  • Expose data from a child to slot content with slot props and destructure it in the parent with v-slot to customise rendering without changing the child.
04Composition API6 lessons, 3 to 4 hours

Lessons

  • Template refs and exposed bindings in script setup
  • Lifecycle hooks: onMounted and onUnmounted
  • Extracting a composable with ref and computed
  • Composable inputs: accepting refs, values and getters
  • Composables with side effects and automatic cleanup
  • Sharing dependencies with provide and inject

After this module you can

  • Obtain a DOM element with a template ref, use it only after mount, and state which bindings a parent can reach in a script setup component.
  • Place setup work in onMounted and teardown in onUnmounted, and describe the order in which parent and child hooks run.
  • Provide a value from an ancestor and inject it in a descendant with a default, and justify when to use it instead of passing props through each level.
05Forms6 lessons, 3 to 4 hours

Lessons

  • v-model on text, checkbox, radio and select
  • v-model modifiers: trim, number and lazy
  • Submit handling, validation state and disabled controls
  • Accessible field errors with labels and aria-describedby
  • A reusable form field component with defineModel
  • Resetting forms and dynamic field lists

After this module you can

  • Bind text inputs, a single checkbox, checkbox groups, radios and selects to state with v-model and state which value type each control produces.
  • Apply .trim, .number and .lazy to inputs and predict the resulting JavaScript type and update timing.
  • Reset a form to its initial values without losing reactivity and add or remove repeated field groups from an array with stable keys.
06Routing and state6 lessons, 3 to 4 hours

Lessons

  • Routes, RouterLink and RouterView
  • Dynamic route params and reacting to param changes
  • Programmatic navigation and named routes
  • Navigation guards for protected routes
  • Pinia stores: defineStore, state, getters and actions
  • storeToRefs, destructuring and testing stores

After this module you can

  • Install Vue Router, define a routes array, create the router with a history mode, register it with app.use and navigate with RouterLink to a component rendered by RouterView.
  • Define a route with a parameter, read it with useRoute and make the view update when the param changes while the same component instance stays mounted.
  • Destructure state and getters from a store with storeToRefs while taking actions directly, and test a store in isolation by activating a fresh Pinia.
07Async data6 lessons, 3 to 4 hours

Lessons

  • Fetching in a component with loading, error and data refs
  • Modelling request status as one state value
  • A useFetch composable with reactive URL
  • Stale responses: AbortController and cleanup
  • HTTP errors, response.ok and user-facing retry
  • Async actions in Pinia with caching and optimistic updates

After this module you can

  • Fetch JSON with fetch inside an async function, hold data, loading and error in separate refs and render each state in the template.
  • Replace several booleans with a single status value of idle, loading, success or error and compute view flags from it, making impossible combinations unrepresentable.
  • Write an async Pinia action that caches results by key, avoids duplicate in-flight requests and applies an optimistic update that rolls back on failure.
08Application tests7 lessons, 3 to 5 hours

Lessons

  • Vitest and Vue Test Utils setup: mount and read rendered text
  • Testing props, slots and conditional rendering
  • Simulating user input: trigger, setValue and awaiting updates
  • Asserting emitted events and payloads
  • Testing composables and Pinia stores in isolation
  • Testing async loading with mocked fetch and flushPromises
  • Production build output and test script as final checks

After this module you can

  • Configure Vitest with a DOM environment, mount a component with Vue Test Utils and assert on rendered text and elements by data-testid.
  • Write tests that pass props and slots to mount and assert the output for every branch of v-if and v-for.
  • Run the production build and the test run as separate scripted checks and verify that the build writes the expected files and that a failing test returns a non-zero exit code.

What you'll build

3 guided projects along the way, then a final project.

  • Static catalogue UI with components

    after module 2
  • Component library and composables

    after module 5
  • Routed, stateful, data-backed app with tests

    after module 8

Final project

Vue application with tested reactive state, navigation and data access. Choose one option: Event registration manager; Clinic appointment board; Library loan desk.

What you submit

Source repository with a README containing setup instructions and the pinned versions used. Functional checks: at least two views with routing, one validated form, one store, one async data source.

How it's reviewed

Trainer review against the rubric: Reactivity correctness (no destructured copies, no stale reads): 20% Component contracts (props, emits, v-model): 15% Routing, guards and state: 15% Async and error handling: 15% Tests are meaningful and pass: 20%.

Where you'll use it

  • Build a registration or booking screen with validated forms and a list that updates as data changes.
  • Write component tests that catch a broken form or route before release.

Roles that use these skills

  • Front-end developer
  • Vue developer
  • Web developer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

What do I need before I start?

Prerequisite courses: JavaScript Programming, Web Foundations: HTML, CSS and Responsive Layouts. Working JavaScript (variables, functions, arrays and objects, modules, promises and fetch, covered by the earlier course) and HTML/CSS basics including forms. Diagnostic: write a function that filters an array of objects and fetch JSON with async/await; build a labelled form in HTML. No prior Vue, TypeScript or build-tool experience is assumed.

Do I get a certificate?

We do not issue certificates until you successfully build and demonstrate your live project. Module and final assessments are planned; the module pass rule is proposed, not final. Certificates are issued by OUTLEARN staff; nothing is issued automatically.

Be first in when Vue.js Fundamentals opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹69Opens soon
Notify me