A
A
Anton Misyagin2018-11-10 00:43:02
Ruby on Rails
Anton Misyagin, 2018-11-10 00:43:02

How to describe v-bind:class from Vue in haml?

component.vue

<template lang="haml">
.button{'v-bind:class': '{active: true}'}
</template>

Gives compilation error: Invalid or unexpected token
.button{'x-bind:class': '{active: true}'
} '} - renders
I.e. huml doesn't like curly braces inside an attribute value or is this a bug related to Vue? Something is not clear

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fedor Rychkov, 2018-11-10
@StonedCatt

Maybe this link will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question