Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom html error #31

Open
sylvaincaillot opened this issue Jul 5, 2018 · 1 comment
Open

Custom html error #31

sylvaincaillot opened this issue Jul 5, 2018 · 1 comment

Comments

@sylvaincaillot
Copy link

Hello,
I am using Vue-CLI 3 in which I have imported the VUE LBD template from Creative Tim. Everything seems to work fine except for notifications.

The following works:

      this.$notifications.notify({
        message: 'Welcome',
        icon: 'nc-icon nc-app',
        horizontalAlign,
        verticalAlign,
        type: this.type[color],
      });

while the following returns a "You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build." error...

      this.$notifications.notify({
        component: {
                template:'<span><a href="https://www.google.com" target="_blank"> Go to google</a></span>'
         },
        icon: 'nc-icon nc-app',
        horizontalAlign,
        verticalAlign,
        type: this.type[color],
      });

Any advice would be welcome

Sylvain

@ciarans
Copy link

ciarans commented Aug 25, 2018

You need to pass a Vue Component, not a string. Check out the jsfiddle demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants