Answer the question
In order to leave comments, you need to log in
How to re-render vuejs components?
I created a var object
. I create a component
and start using it in every possible way in vertsk.
Everything works and everything is fine. But then the malicious programmer simply deletes the entire layout and re-includes the file with the werth one, and my sweet components lie like zombies, Vue is not aware of the changes.
I mean, I fought in Google for an hour and a half, tortured Vue methods from the documentation and forums
in the console. I pick this function through the debugger and see that when the function is running, it sees my components and it seems (I would like) everything should be fine. But I'm confused and don't understand.
I need to give the task of re-rendering components from my kind JS, how to do this? Maybe I didn't think of something right?
var VueApp = new Vue({ el: '#app' .....
Vue.component('coin-input', {
<coin-input .... > </coin-input>
VueApp.$forceUpdate(); // undefined
Answer the question
In order to leave comments, you need to log in
"Programmer" hang on a cord from Claudia. Send JSON with data from the server, not layout.
I think in the end you can screw up some solution (at least re-initialize the entire vue application as a whole), but this is a hassle and there is no point in this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question