Hi guys
I need to charge a external link (script) in the head of one page, not in all. Because I'm using Froala editor, url integration nuxt.config.js
plugins: [
'~plugins/vuetify',
{ src: '~plugins/socket-client', ssr: false },
{ src: '~plugins/froala', ssr: false },
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery'
})
],
file.vue
<script>
export default {
data () {
return {
config: {
events: {
'froalaEditor.initialized': function () {
console.log('initialized')
}
}
},
model: 'Edit Your Content Here!'
}
},
head () {
return {
script: [
{ src: '//cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js', type: 'text/javascript' }
]
}
}
}
</script>
when I enter in the page the link doesn't appear.
What can i do?
thanks
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c723">#c723</a>)</em></sub></div>