borisyankov/DefinitelyTyped — pull request #818 by danieljsinclair (2013-08-01 17:12:48+00:00)
Title: IRoute.templateUrl also now accepts a function instead of a string.

Adjusted templateUrl of IRoute because $routeProvider now allows function templateUrls to be defined such as;

.when("/:controller/:action", {
templateUrl: function ($routeParams) {
console.log("Default rule");
return '/ng/app/views/partials/' + $routeParams.action.toLowerCase() + '.htm';
}
})