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
removeargument is true, remove its associated DOM element or fragment from the DOM.Triggers the
beforeDestroyanddestroyedhooks. -
See also: Lifecycle Diagram
Please login to continue.