AngularJS - get the list of defined routes - $routeProvider
I am trying to implement named routes , so I don't have to write the whole path (often changes). I was thinking I could get away with writing a service that would return the list of defined routes and a filter that would transform object to aroute The use example would look like: <a ng-href="{id:1}|route:'detail'">Click here!</a> Provided I have added name:'detail' to my route definition, this would generate the following result : <a href="#/detail/1/">Click here!</a> I think this is quite simple, but: How can I get the list of defined routes ? I was thinking I can make use of routeProvider ,