r/angularjs • • Nov 14 '14

[Code] UI-Router 0.2.12 released

https://github.com/angular-ui/ui-router/releases/tag/0.2.12
50 Upvotes

9 comments sorted by

View all comments

6

u/filifjonk Nov 14 '14

Why not just use angular-route.js?

9

u/[deleted] Nov 14 '14

They explain it:

"Unlike the $route service in the Angular ngRoute module, which is organized around URL routes, UI-Router is organized around states, which may optionally have routes, as well as other behavior, attached."

They offer something different. They're not claiming ui-router is better than ngRoute.

8

u/e82 Nov 14 '14

IMO, "why wouldn't you use ui-router" -- I don't think I'd consider starting a new angular project and using angular-router over ui-router.

Nested states, named views, etc - makes building out anything non-trivial much easier.

4

u/zomgwtfbbq Nov 14 '14

Yes, yes, downvote someone asking a reasonable question that obviously isn't already familiar with ui-router. Wtf is wrong with this sub? Kudos to the people that took the time to reply and explain the difference between the two.