nuxt custom plugin
export default ({ app, store }, inject) => {
inject("notifier", {
showMessage({ content = "", color = "" }) {
store.commit("snackbar/showMessage", { content, color });
}
});
};
nuxt custom plugin
export default ({ app, store }, inject) => {
inject("notifier", {
showMessage({ content = "", color = "" }) {
store.commit("snackbar/showMessage", { content, color });
}
});
};
integrate plugin nuxt
//For nuxt 3 - create a folder name plugins and create a file like plugins/vue-gtag.client.- nuxt will auto-import :)
import VueGtag from 'vue-gtag-next'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueGtag, {
property: {
id: 'GA_MEASUREMENT_ID'
}
})
})
integrate plugin nuxt
import VueGtag from 'vue-gtag-next'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueGtag, {
property: {
id: 'GA_MEASUREMENT_ID'
}
})
})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us