I must create a wizard using angularjs ... I don't know angularjs very well and I know this is a problem... so my doubts are if I am using the correct approch to create the wizard...
Here the main questions I cannot find a answer:
- Should I use
views
orng-switch
or something else I don't know? In this moment, I am usingng-switch
, but the main problem I am facing is that everyng-with-when
has a ownscope
;
2.Every step of the wizard need to be filled with some data coming from server. Both using view
and ng-switch
make impossible to do just a call to the server when i land on the page containing the wizard. It means that everytime a change the step I must call the server and obtain data just for that server.
Onestly I don't like that approch, personally I prefer to do just a single call to the server and obtain whatever I need immediately. What do you think about this?
I should do a call to the server everytime I change the step? Or is it better do just a call a the start?
If second way, is the better, so how should I create the wizard? Because I do not have visibility of the steps following the first, so I cannot do the binding.
Hope I have been clear. Thanks everyone who can help me.