N
N
NikClik2019-01-26 22:11:39
Vue.js
NikClik, 2019-01-26 22:11:39

How to execute code before components are rendered?

I need to execute a certain code so that no component is rendered while it is being executed, but at the same time, inside this code there is the use of imported plugins, i.e. this code should be executed after the plugins are initialized but before the page is rendered, where to insert the code?
((I use Nuxt in the project))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jazzus, 2019-01-26
@jazzus

Make props/parameter show: false and show by condition,
for example, do it in a tag/component v-if="show" and enable show itself when the desired code is executed (i.e. make this.show = true)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question