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

Method ngOnChanges

src/material/datepicker/month-view.ts:240–250  ·  view source on GitHub ↗
(changes: SimpleChanges<this>)

Source from the content-addressed store, hash-verified

238 }
239
240 ngOnChanges(changes: SimpleChanges<this>) {
241 const comparisonChange = changes['comparisonStart'] || changes['comparisonEnd'];
242
243 if (comparisonChange && !comparisonChange.firstChange) {
244 this._setRanges(this.selected);
245 }
246
247 if (changes['activeDrag'] && !this.activeDrag) {
248 this._clearPreview();
249 }
250 }
251
252 ngOnDestroy() {
253 this._rerenderSubscription.unsubscribe();

Callers

nothing calls this directly

Calls 2

_setRangesMethod · 0.95
_clearPreviewMethod · 0.95

Tested by

no test coverage detected