MCPcopy Create free account
hub / github.com/angular/components / _destroyPreview

Method _destroyPreview

src/cdk/drag-drop/drag-ref.ts:718–721  ·  view source on GitHub ↗

Destroys the preview element and its ViewRef.

()

Source from the content-addressed store, hash-verified

716
717 /** Destroys the preview element and its ViewRef. */
718 private _destroyPreview() {
719 this._preview?.destroy();
720 this._preview = null;
721 }
722
723 /** Destroys the placeholder element and its ViewRef. */
724 private _destroyPlaceholder() {

Callers 2

disposeMethod · 0.95
_cleanupDragArtifactsMethod · 0.95

Calls 1

destroyMethod · 0.65

Tested by

no test coverage detected