marcelodolza/iziToast

Methods not working in Vue JS

Open

#38 aperta il 4 apr 2017

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)JavaScript (300 fork)github user discovery
Implementedhelp wantedtip

Metriche repository

Star
 (2667 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

I am trying to include izitoast in my vue js application. And I have declared the plugin in my dev,base and prod conf file. I have included the imports in my main.js file like this import '../node_modules/izitoast/dist/js/iziToast.min.js' import '../node_modules/izitoast/dist/css/iziToast.css'. And used izitoast in my mounted hook like $(this.$el).find('.addbtn').iziToast.success({ title: 'OK', message: 'Successfully inserted record!', });. I get error "Cannot read property success of undefined"? Can you help with this? PS: I have also tried using the import izitoast from 'izitoast' and Vue.use(izitoast)

Guida contributor