Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to reset meta content to parent's value #204

Closed
peronczyk opened this issue Apr 4, 2018 · 1 comment
Closed

Ability to reset meta content to parent's value #204

peronczyk opened this issue Apr 4, 2018 · 1 comment

Comments

@peronczyk
Copy link

peronczyk commented Apr 4, 2018

Is there any way to be able of resetting meta content value within nested component? For example I have "parent" component with this code:

export default {
  metaInfo() {
    return {
      title: 'Some default title'
    }
  },
  ...
}

and "child" component:

export default {
  metaInfo() {
    return {
      title: this.pageTitle
    }
  },
  computed: {
    pageTitle() {
      return <some async result>
    }
  }
  ...
}

I don't know what will be the result of async action so I would like to return for example 'false' to pageTitle in order to tell vue-meta to skip <title> change in "child" component and use title from parent component.

Is there any way to do this?

@pimlie
Copy link
Collaborator

pimlie commented Apr 20, 2019

This issue has been closed as changes for it are included in the v2 release candidate. Please help us testing the release candidate and report any follow-ups in a new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants