MCPcopy Index your code
hub / github.com/angular/components / ngOnInit

Method ngOnInit

src/material/select/select.ts:627–639  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

625 }
626
627 ngOnInit() {
628 this._selectionModel = new SelectionModel<MatOption>(this.multiple);
629 this.stateChanges.next();
630 this._viewportRuler
631 .change()
632 .pipe(takeUntil(this._destroy))
633 .subscribe(() => {
634 if (this.panelOpen) {
635 this._overlayWidth = this._getOverlayWidth(this._preferredOverlayOrigin);
636 this._changeDetectorRef.detectChanges();
637 }
638 });
639 }
640
641 ngAfterContentInit() {
642 this._initialized.next();

Callers

nothing calls this directly

Calls 3

_getOverlayWidthMethod · 0.95
changeMethod · 0.80
nextMethod · 0.45

Tested by

no test coverage detected