B
B
Bekkazy2020-06-22 14:44:22
Vue.js
Bekkazy, 2020-06-22 14:44:22

How to create a new element on an event in vue.js?

I am using a free template . On the login page, I'm trying to show an error message using Base-alert, but the documentation doesn't describe how to call it from an event.
Can anyone suggest? Just started learning Vue.js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-06-22
@Aetae

In Vue, all elements must be pre-provisioned and prepared in place.
And then you just change the value of the flag used in v-if/ v-showor add to the array used in v-for. No work with elements - all work only with data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question