Restricted backward navigation
Prevent returning to earlier visited steps. Applications control validation and can disable future steps until their prerequisites are met.
Step 1 of 3
- Account
- ShippingOptional
- Payment
Use
[allowRevisit]="false" to prevent backward navigation. It does not enforce sequential progression or validate forms. Use each step’s disabled flag for unavailable headers and handle application validation explicitly. <ngb-stepper [steps]="steps" [selectedIndex]="index" [allowRevisit]="false">
<ng-template stepContent let-index="index">
<app-step-panel [step]="steps[index]"></app-step-panel>
</ng-template>
</ngb-stepper>