Hello,
To have more informations about steps on a Model, we have access to Steps and Current Step variables.
we can access it in Javascript like that :
$scope.setWidgetProp('model-1', 'currentStep', 4);
Where 'model-1' is the Friendly Name of the Model
4 is the step to play
This part of javascript code, play the step 2 of Sequence selected in Sequence list for the Model named model-1 in the Home View.
A delay of 0.5 secondes is applied to be sure that these actions have been done.
$timeout(function () {
$scope.view.wdg['model-1']['currentStep']=2;
$scope.$root.$broadcast('app.view["Home"].wdg["model-1"].svc.play');
}, 500);
Best regards,
Samuel