angular-archwizard icon indicating copy to clipboard operation
angular-archwizard copied to clipboard

Passe a fuction to [canExit]

Open AbigailAdjo opened this issue 3 years ago • 0 comments

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; } }

AbigailAdjo avatar Jun 23 '22 12:06 AbigailAdjo