Last active
October 30, 2017 05:28
-
-
Save phillipzada/23a927ec5ef82fcb26e74322f35a859a to your computer and use it in GitHub Desktop.
Output from console a list of registered routes within an AngularJS application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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