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

Method constructor

src/material/tabs/tab-body.ts:189–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 }
188
189 constructor() {
190 if (this._dir) {
191 const changeDetectorRef = inject(ChangeDetectorRef);
192 this._dirChangeSubscription = this._dir.change.subscribe((dir: Direction) => {
193 this._computePositionAnimationState(dir);
194 changeDetectorRef.markForCheck();
195 });
196 }
197 }
198
199 ngOnInit() {
200 this._bindTransitionEvents();

Callers

nothing calls this directly

Calls 2

markForCheckMethod · 0.80

Tested by

no test coverage detected