Can you force Vue.js to reload/re-render ?

Can you force Vue.js to reload/re-render ?

Asked on November 13, 2018 in vue.js.
Add Comment


  • 2 Answer(s)

    Go for this:

    vm.$forceUpdate();
    
    

    There is no need to produce any other sagging vars

    Answered on November 13, 2018.
    Add Comment

    It is a clear answer,

    If the element needs to be entirely rebuilt, then use the below code and the modify the key

    :key="someVariableUnderYourControl"
    
    
    Answered on November 13, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.