Skip to main content
Version: 2.x

HTMLView.dispose() method

@microsoft/fast-element > HTMLView > dispose

HTMLView.dispose() method

Removes the view and unbinds its behaviors, disposing of DOM nodes afterward. Once a view has been disposed, it cannot be inserted or bound again.

Signature:

dispose(): void;

Returns:

void