Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Example get route param  #15

@mahadoang

Description

@mahadoang

How to get param from router

<RouterLink to="/doc/123">Document</RouterLink>

How to get param document_id in DocumentDetail component

export default {
  mode: 'history',
  routes: {
    '/': Home,
    '/doc': Document,
    '/doc/:document_id':DocumentDetail,
    default: NotFound
  }
}

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions