Ember cli and Router.router.recognizer


#1

Dumb question how do you call the router.recognizer in the browser console and also display current route name in a template in an ember cli app?

Before you could do stuff like this with globals

App.Router.router.recognizer.recognize('/some_path')

App.Router.router.recognizer.names

Seems obvious I am just not seeing it, with the modules syntax.


#2

You can try require('your-app-namespace/router').default.router.recognizer.names


#3

Thank you @MiguelMadero that did the trick!