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

Method _anyControlsInvalidOrPending

src/cdk/stepper/stepper.ts:592–607  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

590 }
591
592 private _anyControlsInvalidOrPending(index: number): boolean {
593 if (this.linear && index >= 0) {
594 return this.steps
595 .toArray()
596 .slice(0, index)
597 .some(step => {
598 const control = step.stepControl;
599 const isIncomplete = control
600 ? isInvalid(control) || isPending(control) || !step.interacted
601 : !step.completed;
602 return isIncomplete && !step.optional && !step._completedOverride();
603 });
604 }
605
606 return false;
607 }
608
609 private _layoutDirection(): Direction {
610 return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';

Callers 1

selectedIndexMethod · 0.95

Calls 2

isInvalidFunction · 0.85
isPendingFunction · 0.85

Tested by

no test coverage detected