Skip to content

Snotify just prints out JSON structure, while CSS applied #97

Open
@wethinkagile

Description

@wethinkagile

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions