Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

274
Vistas
Nuxtjs: Adding Vuejs plugins doesn't get initialized/ shown on my template

I am trying to add a vue-button-loading plugin to my project. I've installed the plugin properly and added the necessary configurations as instructed on nuxtjs on how to install the plugin.

Here is where I installed my plugin on nuxt.config.js file:

export default {
  ...
  plugins: [
      {
        src:'~/plugins/loading-button.js', mode: 'client'
      }
  ]
  ...
 }

And then I created loading-button.js under the plugins folder as follows:

import Vue from 'vue'
import VueLoadingButton from 'vue-loading-button'

Vue.use(VueLoadingButton)

Lastly, I load my button on the template with:

<VueLoadingButton />

But nothing seems to show. If I inspect I can see it is initialized.

Any help to resolve this will be greatly appreciated.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

try use vue.component instead

import Vue from 'vue'
import VueLoadingButton from 'vue-loading-button'

Vue.component('my-loading-button', VueLoadingButton)

and in your vue template

<my-loading-button :loading="true">Send</my-loading-button> 

You can check live here https://codesandbox.io/s/practical-bartik-43e37?file=/plugins/loading-button.js

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda