Reputation: 91
I'm using generator-angular with Yeoman and I'm using yo angular:route XYZ
to create new view/controller/route/and test spec.
I know have to use ui-router to implement a multi-step form, based on this one
The questions I have is (and mainly about the use of both angular's router and ui-router):
bower install angular-ui-router --save
Thanks for your help on this
Upvotes: 2
Views: 1534
Reputation: 16066
1 - I'm not so sure about your generator (i haven't used it), but since almost all generators are opinonated, if that generator doesn't allow you to choose the router at the beginning then sounds to me like you'll need to look to different options, with cg-angular you can choose use ui-router at the time of the project creation.
2 - if you decide to keep your generator I'm afraid that you'll need to create your routes by hand (that's not a big deal)
3 - I don't think that mix your router providers could be a good idea, I haven't done that yet but they are different implementation for the same purpose so there's a big chance to get a collision between the two and they couldn't work together at all.
In my opinion stick to the ui-router it's quite nice and the migration isn't that painfull and it may worth the change.
Upvotes: 1