vue-router

Vue Router - official router for Vue.js. Use when building single-page applications with routing, navigation guards, nested routes, or programmatic navigation.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "vue-router" with this command: npx skills add hairyf/skills/hairyf-skills-vue-router

Vue Router

The skill is based on Vue Router v5.0.1, generated at 2026-01-31.

Vue Router is the official router for Vue.js. It deeply integrates with Vue.js core to make building Single Page Applications with Vue.js a breeze. Features include nested routes mapping, dynamic routing, modular component-based router configuration, route params, query, wildcards, view transition effects, fine-grained navigation control, links with automatic active CSS classes, HTML5 history mode or hash mode, customizable scroll behavior, and proper encoding for URLs.

Core References

TopicDescriptionReference
Router SetupCreate router instance, register plugin, access router/routecore-router-setup
NavigationProgrammatic navigation with push, replace, go methodscore-navigation
RouterView & RouterLinkComponents for rendering routes and creating navigation linkscore-router-view-link

Essentials

Route Configuration

TopicDescriptionReference
Dynamic MatchingDynamic route segments with params, accessing route.paramsessentials-dynamic-matching
Nested RoutesNested route configuration with children optionessentials-nested-routes
Named RoutesNamed routes for navigation without hardcoded URLsessentials-named-routes
Named ViewsMultiple RouterView components for complex layoutsessentials-named-views
History ModeHTML5 history, hash mode, memory mode, server configurationessentials-history-mode
Route Matching SyntaxCustom regex, repeatable params, optional paramsessentials-route-matching-syntax
Active LinksActive link CSS classes, router-link-active vs exact-activeessentials-active-links
Passing PropsPass route params as component propsessentials-passing-props
Redirect & AliasRoute redirects and aliases for URL mappingessentials-redirect-alias

Advanced

Navigation & Guards

TopicDescriptionReference
Navigation GuardsGlobal guards, per-route guards, in-component guardsadvanced-navigation-guards
Navigation FailuresDetecting aborted/cancelled/duplicated navigationsadvanced-navigation-failures

Composition & TypeScript

TopicDescriptionReference
Composition APIuseRouter, useRoute, navigation guards, useLinkadvanced-composition-api
Typed RoutesTypeScript typed routes for autocomplete and type safetyadvanced-typed-routes

Advanced Features

TopicDescriptionReference
TransitionsRoute transitions using RouterView slotadvanced-transitions
Scroll BehaviorCustom scroll behavior on navigationadvanced-scroll-behavior
Meta FieldsRoute meta fields for custom dataadvanced-meta
Lazy LoadingLazy loading route components with dynamic importsadvanced-lazy-loading
Dynamic RoutingAdding and removing routes at runtimeadvanced-dynamic-routing
RouterView SlotAdvanced RouterView slot API for custom renderingadvanced-router-view-slot

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

arch-tsdown-cli

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

github-workflow

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

github-cli

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

arch-vscode

No summary provided by upstream source.

Repository SourceNeeds Review