Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
attach
Method · 0.95
ngOnDestroy
Method · 0.95
Calls
1
detach
Method · 0.65
Tested by
no test coverage detected