arielfaur / ionic-wizard

A set of angular directives to create a wizard using Ionic's slide box
http://arielfaur.github.io/ionic-wizard
MIT License
81 stars 26 forks source link

submit form every step #24

Open lahiru1991 opened 7 years ago

lahiru1991 commented 7 years ago

Hi,

this is not a bug and i need to know can i following case using ionic-wizard.

I have to submit values to controller in each step. any idea how to achieve this. also i created new controllers for every step.

genepaul commented 7 years ago

@lahiru1991 - are you wanting to submit to a service? Otherwise, if you use one controller for the whole wizard, you should be able to bind to your components and have values saved in your controller. Otherwise, there's a pull request open currently to have an action that runs on each step. I'm going to work on getting that integrated into the main line soon. You can take a look and see if that's what you need.

lahiru1991 commented 7 years ago

@genepaul thank you, No submit to the controller.

Now i added one controller to whole wizard, like you said. but there is another problem. im using $scope.$on("slideBox.slideChanged", function(e, index) {}); code to identifying step changes. but problem is this listener working multiple times when wizard change the status. if you want i can share my codes. another thing actually i want is set first step input values to second step fields if user want. but i can't find a way how to set values to fields during the render.

by the way im new to ionic sorry if im asking stupid questions.

genepaul commented 7 years ago

Sorry about the delay getting back to you. I'd need so see your code to see what you're trying to do, if you're still having this issue.