K
K
kepo2017-06-13 14:43:54
HTML
kepo, 2017-06-13 14:43:54

How to use custom attribute in Pug? Is Pug incompatible with Vue?

You need to use something like
<button v-ripple.mouseover>Button</button>
I do
button(v-ripple.mouseover) Button
Knocks out an error

TypeError: Cannot read property 'mouseover' of undefined

Without '.mouseover' everything works, so the error is in this modifier. It turns out that Pug is not compatible with Vue?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Anton, 2017-06-13
@kepo

if vue-loader is used, then you can specify the correct doctype in the webpack config:

{
        test: /\.vue$/,
        loader: 'vue-loader',
        options: {
                loaders: {},
        template: {
        doctype: 'html'
        }
}

K
kepo, 2017-06-13
@kepo

I found a MEGA UGLY solution
. It works, but I need alternatives, otherwise I'll go back to html))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question