A
A
Artem00712019-03-13 13:33:12
Pug
Artem0071, 2019-03-13 13:33:12

How to pass parameter from Vue to Pug?

How to correctly pass a parameter from Vue to Pug
I did something like this:

<template lang="pug">

    - var newDesign = isNewDesign; // isNewDesign - это параметр из data

        p test: #{newDesign} // тут ничего не выводит, получается "test: "


</template>

Is it possible to pass this parameter somehow or not?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-03-13
@Artem0071

And what's the difference whether you have pug or not pug? Everything is as usual:
p test: {{ isNewDesign }}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question