Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Finding the best way to get title on client side #747

@shmidtelson

Description

@shmidtelson

Hi! I wanna to show page.titleChunk in template.
It more useful but very ugly case

 watch: {
    $route: {
      immediate: true,
      handler() {
        setTimeout(() => {
          const { metaInfo } = this.$root.$meta().refresh()
          this.setH1(metaInfo.titleChunk)
        }, 50)
      },
    },
  },

Can you give me advice how i can improve this.

I need to show title in header component which located above the tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions