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

Function ngOnChanges

src/material/datepicker/datepicker-base.ts:560–576  ·  view source on GitHub ↗
(changes: SimpleChanges<this>)

Source from the content-addressed store, hash-verified

558 }
559
560 ngOnChanges(changes: SimpleChanges<this>) {
561 const positionChange = changes['xPosition'] || changes['yPosition'];
562
563 if (positionChange && !positionChange.firstChange && this._overlayRef) {
564 const positionStrategy = this._overlayRef.getConfig().positionStrategy;
565
566 if (positionStrategy instanceof FlexibleConnectedPositionStrategy) {
567 this._setConnectedPositions(positionStrategy);
568
569 if (this.opened) {
570 this._overlayRef.updatePosition();
571 }
572 }
573 }
574
575 this.stateChanges.next(undefined);
576 }
577
578 ngOnDestroy() {
579 this._destroyOverlay();

Callers

nothing calls this directly

Calls 3

getConfigMethod · 0.80
updatePositionMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…