Open the attached menu.
()
| 113 | |
| 114 | /** Open the attached menu. */ |
| 115 | open() { |
| 116 | if (!this._parentMenu) { |
| 117 | this._menuTracker.update(this); |
| 118 | } |
| 119 | if (!this.isOpen() && this.menuTemplateRef != null) { |
| 120 | this.opened.next(); |
| 121 | |
| 122 | this.overlayRef = |
| 123 | this.overlayRef || createOverlayRef(this._injector, this._getOverlayConfig()); |
| 124 | this.overlayRef.attach(this.getMenuContentPortal()); |
| 125 | this._changeDetectorRef.markForCheck(); |
| 126 | this._subscribeToOutsideClicks(); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** Close the opened menu. */ |
| 131 | close() { |
no test coverage detected