angular-archwizard
angular-archwizard copied to clipboard
Passe a fuction to [canExit]
Hello all , I have a verification to do before allowing the wizard to exit the current step and enter the next step, I'm trying to passe a function to [canExit] but seems like the way I'm doing is the wrong one. Can anyone help?
HTML :
<aw-wizard-step stepTitle="Identification" formGroupName="step1Validation" [canExit]="canExitStep1($event)">
Typescript :
canExitStep1(direction: MovingDirection, forward: boolean, backward: boolean) { switch (direction) { case MovingDirection.Forwards : return forward; case MovingDirection.Backwards: return backward; } }