Created
May 16, 2013 13:15
-
-
Save cv711/5591628 to your computer and use it in GitHub Desktop.
List all routes accessible in Ember.js app (from v 1.0.0-rc1)
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
//This will return objects corresponding to each segment that the route consists of. | |
App.Router.router.recognizer.recognize('/some_path') | |
//to see all the routes in your application – including nested routes. | |
App.Router.router.recognizer.names |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment