This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
allow to pass a function as templateUrl in routes #1193
Closed
Description
right now you have to do a ugly hack to achieve something similar (for example: http://stackoverflow.com/questions/11534710/angularjs-how-to-use-routeparams-in-generating-the-templateurl )
it would be nice if angularjs allows you to pass a function that receives $routeParams (and $location if possible)
what do you think?