Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submit form every step #24

Open
lahiru1991 opened this issue Jan 31, 2017 · 3 comments
Open

submit form every step #24

lahiru1991 opened this issue Jan 31, 2017 · 3 comments
Labels

Comments

@lahiru1991
Copy link

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
Copy link
Collaborator

@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
Copy link
Author

@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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants