last day (15 days later) » 

06:56
0
A: Problems with vue rendering Json returns well but does not display

Sarjerao GhadageInstead of this.msg.$forceUpdate() use this.$forceUpdate(); and write created() outof methods. <template> <div class="result" > <div v-bind:style="{ color: `${msg.font_color}`}"> <p>{{msg.info_text}}</p> </div> <p> {{msg.rate_adult}}</p> <img :s...

Thanks for the advice. However, it is not rendered yet.
console your msg after assigning response.data
I'm sorry, but can you explain it in more detail? I'm still confused because I'm a vue beginner.
after this this.msg = response.data statement write console.log(this.msg); and post console message here
An unexpected error has occurred.
06:56
I have updated code, please check.
hi
write created() outside of methods
Can I post pictures to this chat room?
created(){
this.msg
},??
i have updated simple code here and its working
I can't.
ㅠㅠ
wait
I will try and come.
What I'm making is related to image upload.
Since created () writes the previous data, you need to use mounted ().
you can use it
f this answer or any other one solved your issue, please mark it as accepted
There is no rerender.
The previous value remains the same.
If you upload a new image, the output should be correct accordingly.
The previous value is cumulative.

last day (15 days later) »