V
V
Vasya Surname2019-10-02 18:54:18
Vue.js
Vasya Surname, 2019-10-02 18:54:18

How to do a simple replacement of static html in an element using VUE?

I can’t figure out how to make a long table immediately displayed on load, and not rendered through vue, and when the button is clicked, its content changes
https://jsfiddle.net/Lnvz28eo/1/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2019-10-02
@bazilio2010

<div v-if="message" v-html="message"></div>
<div v-else>Длинная длиная html таблица которая должна быть видна при загрузке</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question