vm.$destroy( [remove] )
-
Arguments:
{Boolean} [remove] - default: false
-
Usage:
Completely destroy a vm. Clean up its connections with other existing vms, unbind all its directives, turn off all event listeners and, if the
remove
argument is true, remove its associated DOM element or fragment from the DOM.Triggers the
beforeDestroy
anddestroyed
hooks. -
See also: Lifecycle Diagram
Please login to continue.