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

Method detach

src/material/menu/menu-content.ts:91–95  ·  view source on GitHub ↗

* Detaches the content. * @docs-private

()

Source from the content-addressed store, hash-verified

89 * @docs-private
90 */
91 detach() {
92 if (this._portal?.isAttached) {
93 this._portal.detach();
94 }
95 }
96
97 ngOnDestroy() {
98 this.detach();

Callers 2

attachMethod · 0.95
ngOnDestroyMethod · 0.95

Calls 1

detachMethod · 0.65

Tested by

no test coverage detected