how to grab last step in angular stepper code example Example: If 'mat-step' is an Angular component, import {MatStepperModule} from '@angular/material/stepper';