Skip to content

Accessing route VM within router hooks for updating document.title #112

@frolic

Description

@frolic

I'd like to change the page title on route changes for better history management. I thought to do this in the afterEach router hook, using a data property on the VM (computed or otherwise). However, I can't find a good way to access the <router-view> VM from within this hook.

Any alternatives you would suggest?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions