Can't ad meta title dynamically following docs



  • I have the Meta plugin installed and this code in a page:

      data () {
        return {
          title: ''
        }
      },
     mounted () {
        this.title = 'My dynamic title from DB'
      },
     meta () {
        return {
          title: this.title,
          meta: {
            description: { name: 'description', content: 'Test' },
            keywords: { name: 'keywords', content: 'Quasar website' }
          }
        }
      }
    

    This code gives me no title meta tag at all in view source.

    i guess things are happening in the wrong order here. Please adwise.


Log in to reply