vue-snotify
vue-snotify copied to clipboard
Snotify just prints out JSON structure, while CSS applied
For me it just formats my window in red with the Questionmark and then just prints the JSON contents like this:
{body: 'My Notification Body',
title: 'Notification Title',config: {}}
Full Code:
export default {
template: '#controls',
methods: {
displayNotification() {
this.$snotify.error(
{
body: 'My Notification Body',
title: 'Notification Title',
config: {}
});
},
I use Snotify in the main.js file like this:
import Snotify from 'vue-snotify';
Vue.use(Argon);
Vue.use(Vuex);
Vue.use(VueHighlightJS, {
languages: {
javascript
}
});
Vue.use(Snotify)
Vue.config.productionTip = false;
Anybody has an idea why it does not render the values of body and title keys?
+1
i have the same problem