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

Method constructor

src/material/stepper/stepper.ts:226–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 protected _isServer: boolean = !inject(Platform).isBrowser;
225
226 constructor() {
227 super();
228
229 const elementRef = inject<ElementRef<HTMLElement>>(ElementRef);
230 const nodeName = elementRef.nativeElement.nodeName.toLowerCase();
231 this.orientation = nodeName === 'mat-vertical-stepper' ? 'vertical' : 'horizontal';
232 }
233
234 override ngAfterContentInit() {
235 super.ngAfterContentInit();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected