R
R
Ruslan Dasaev2020-02-24 17:40:31
Vue.js
Ruslan Dasaev, 2020-02-24 17:40:31

How to change the text on the desired button using vue.js?

Hello. How to do the same text change on the pressed button like here , but now with the help of vue.js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-02-24
@Cloud47

There must be some kind of flag along with the data. And in the template, based on this flag, display this or that text.
For example like this

Or The text for the button must lie with the data. On some event this text to change. Moved to a separate class for convenience.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question