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

Method constructor

src/dev-app/datepicker/datepicker-demo.ts:112–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110 private readonly _destroyed = new Subject<void>();
111
112 constructor() {
113 const _calendar = this._calendar;
114 const cdr = inject(ChangeDetectorRef);
115
116 _calendar.stateChanges.pipe(takeUntil(this._destroyed)).subscribe(() => cdr.markForCheck());
117 }
118
119 ngOnDestroy() {
120 this._destroyed.next();

Callers

nothing calls this directly

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected