marcelodolza/iziToast

Methods not working in Vue JS

Open

#38 opened on Apr 4, 2017

View on GitHub
 (3 comments) (0 reactions) (0 assignees)JavaScript (300 forks)github user discovery
Implementedhelp wantedtip

Repository metrics

Stars
 (2,667 stars)
PR merge metrics
 (PR metrics pending)

Description

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)

Contributor guide