From 680bf554f8db3fc2daf296b18b12e565e3230420 Mon Sep 17 00:00:00 2001 From: Rati Dzidziguri Date: Wed, 22 Jun 2016 21:45:53 +0400 Subject: [PATCH] step is passed to the onStepChange method as an argument --- src/directives/multi-step-container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/directives/multi-step-container.js b/src/directives/multi-step-container.js index 7fd4ebc..63cd787 100644 --- a/src/directives/multi-step-container.js +++ b/src/directives/multi-step-container.js @@ -146,7 +146,7 @@ function multiStepContainer($animate, $q, $log, multiStepForm, FormStep, formSte // Enter new step when new step element is ready newStepElement .then(function (step) { - onStepChange(); + onStepChange(step); currentStepScope = step.scope; currentStepElement = step.element; currentStepElement.scrollTop = 0;