Ember.js multiple views for same controller OR wizard like routes; how to? -
Click Next and go to the second page and until it reaches the final page. Here, he clicks on the end and all his input is stored using an amber model
There are two other such questions:
Then I took the approach described in the above links. A template with one path, one controller, lots of {{# if}}
so that I only show the fields of the current phase. I think I can improve it by partial use and so each stage will have its own template.
The question is, is this the only / best way? Has anyone detected a better way of implementing this kind of flow?
If you make each wizard page a component and then for each component as a template parameter Pass the model, you get a pretty good workflow URL is stable (continuously adding junk to the end of the situation); It is easy to leave the user in the first step whenever they enter the path (such as manually inputing the URL or, more importantly, eliminating the wizard and hitting the browser's back button); And you can verify on every page of the wizard.
See my long answer
Comments
Post a Comment