| 412 | private _orientation: StepperOrientation = 'horizontal'; |
| 413 | |
| 414 | ngAfterContentInit() { |
| 415 | this._steps.changes |
| 416 | .pipe(startWith(this._steps), takeUntil(this._destroyed)) |
| 417 | .subscribe((steps: QueryList<CdkStep>) => { |
| 418 | this.steps.reset(steps.filter(step => step._stepper === this)); |
| 419 | this.steps.forEach((step, index) => step.index.set(index)); |
| 420 | this.steps.notifyOnChanges(); |
| 421 | }); |
| 422 | } |
| 423 | |
| 424 | ngAfterViewInit() { |
| 425 | // If the step headers are defined outside of the `ngFor` that renders the steps, like in the |