PRAJIN PRAKASH
PRAJIN PRAKASH

Reputation: 1475

How extend the root application with Nuxt.js?

How extend the root application with Nuxtjs as in this video , This is not working now, Is there anyway to customize the Nuxt.js App Layout. Thanks for any solutions in advance.

Upvotes: 0

Views: 452

Answers (1)

PRAJIN PRAKASH
PRAJIN PRAKASH

Reputation: 1475

Yes finally got it, Using plugin and mixins

export default function({ app }) {
  if (!app.mixins) {
    app.mixins = []
  }
  app.mixins.push({
    mounted() {
    //..  do here
    }
  })
}

Upvotes: 1

Related Questions