Skip to content

Instantly share code, notes, and snippets.

@phillipzada
Last active October 30, 2017 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phillipzada/23a927ec5ef82fcb26e74322f35a859a to your computer and use it in GitHub Desktop.
Save phillipzada/23a927ec5ef82fcb26e74322f35a859a to your computer and use it in GitHub Desktop.
Output from console a list of registered routes within an AngularJS application
var injector = angular.element(document.body).injector();
var $state = injector.get('$state');
$state.get().map(function(state) { return $state.href(state.name) });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment