Basically because you can see navigation as a state machine, and if so the stateProvider is your best friend because helps you define your navigation in term of states and not routes.
Other than that is a really powerful plugin with support for a lot of amazing stuff. .m Sent from my Amazing Yellow Lumia, typos are guaranteed ;-) ________________________________ From: Scott Howser<mailto:[email protected]> Sent: 19/03/2014 20.46 To: [email protected]<mailto:[email protected]> Subject: Re: [AngularJS] $routeProvider Yes I actaully looked at the code again and it is $stateProvider.state(url, templateUrl, etc...) Why would you use this over $routeProvider? On Wednesday, March 19, 2014 2:40:23 PM UTC-4, Mauro Servienti wrote: Sounds strange, are you speaking about the $stateProvider of the UI-router plugin? Sent from my Amazing Yellow Lumia, typos are guaranteed ;-) ________________________________ From: Scott Howser Sent: 19/03/2014 19.29 To: [email protected] Subject: [AngularJS] $routeProvider I recently saw some code that used $routeProvider .status(...) .status(...) I cant find any documentation on this but I do see that .status() is actaully available. Why would you use status over $routeProvider.when() ?? Thanks Scott St. Pete Florida (Yes angular has reached Florida) -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To post to this group, send email to [email protected]<mailto:[email protected]>. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
