Vue.jsvue-router

Introduction

vue-router is the officially supported routing library for vue.js.

Syntax

  • <router-link to="/path">Link Text</router-link> <!-- Creates a link to the route that matches the path -->

  • <router-view></router-view> <!-- Outlet for the currently matched route. It's component will be rendered here. -->