Closed connecteev closed 5 years ago
Try this
require('./bootstrap');
import Vue from 'vue';
import vDialogs from 'v-dialogs';
//you can config some options in global scope
Vue.use(vDialogs, {
language:'en'
});
const app = new Vue({
el: '#app',
mounted: function() {
console.log('mounted');
},
methods: {
show() {
console.log('show');
//show message with close callback and options
this.$dlg.alert('Data saved successfully!',
function() {
//dialog close callback
},
{
messageType: 'success',
language: 'en'
});
}
}
});
app.show();
That worked. Thank you for the quick response @TerryZ
Trying to get a basic POC working in my Laravel app. What am I doing wrong?
blade file:
app.js:
Calling app.show() gives an error in console. What am I doing wrong?