Logic for the Next button for the questionnaire?

前端 未结 3 1469
伪装坚强ぢ
伪装坚强ぢ 2021-02-15 02:21

I am beginner in AngularJS and facing some issues. I am trying to make a questionnaire having 1 question on each page. On every Next button data is save in the database. I am tr

3条回答
  •  不要未来只要你来
    2021-02-15 02:46

    You could create a multi-step form (also known as Wizard). For this purpose why not using Angular ui-router as suggested in this post:

    https://scotch.io/tutorials/angularjs-multi-step-form-using-ui-router

    which is a tutorial guiding to create a Wizard and has a working example (a Plunker).

    There are also other Angular modules which aim to do the same:

    • https://github.com/troch/angular-multi-step-form (demos and docs here)
    • https://github.com/mgonto/angular-wizard (demo here)

    And in conclusion another tutorial with working demo:

    • http://code.realcrowd.com/the-wonderful-wizard-of-angularjs/

    But if you "google" for "multi-step form angular" you can find some more examples.

    Also on StackOverflow you can find suggestions on how to create a multi-step form (for example see AngularJS multi-step form validation).

提交回复
热议问题