Skip to content

submit form every step #24

Open
Open

Description

@lahiru1991

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.

Activity

  1. genepaul commented on Jan 31, 2017

    @genepaul
    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.

  2. lahiru1991 commented on Feb 2, 2017

    @lahiru1991
    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.

  3. genepaul commented on Feb 27, 2017

    @genepaul
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions