Plugin Meta not working?



  • Hello,

    I am trying to use the Meta Plugin for adding additional meta tags, but its not working. My code is:

    quasar.conf.js

        framework: {
          iconSet: 'material-icons', // Quasar icon set
          lang: 'de', // Quasar language pack
          config: {},
    
          // Possible values for "importStrategy":
          // * 'auto' - (DEFAULT) Auto-import needed Quasar components & directives
          // * 'all'  - Manually specify what to import
          importStrategy: 'auto',
    
          // For special cases outside of where "auto" importStrategy can have an impact
          // (like functional components as one of the examples),
          // you can manually specify Quasar components/directives to be available everywhere:
          //
          // components: [],
          // directives: [],
    
          // Quasar plugins
          plugins: ['Meta']
        },
    

    MainLayout.vue

      meta () {
        return {
          meta: {
            test: {
              name: 'test',
              content: 'TEST'
            }
          }
        }
    

    What’s missing?



  • Try just

      meta () {
        return {
            test: 'some text',
            test2: 'some other text'
          }
        }
    

    Scott



  • Dear Scott,

    thanks, it working either way now, just made some simple mistake!

    Thanks for your help!


Log in to reply