Vue $forceUpdate() Method
Definition and Usage
The built-in $forceUpdate()
method forces a re-render of the Vue application.
Argument | Description |
---|---|
none | Default. The $forceUpdate() method does not accept any arguments. |
Note: In normal cases, an element will be automatically included in Vue's reactivity system, and the Vue application will therefore re-render automatically when the element changes. But, in advanced cases when an element is marked explicitly as not part of the Vue reactivity system, the $forceUpdate()
method can be used.
Related Pages
Vue Reference: Vue $nextTick() Method
Vue Reference: Vue $refs Object
Vue Reference: Vue 'key' Attribute