diff --git a/angularjs/angular-route-tests.ts b/angularjs/angular-route-tests.ts index 3607b6f13..0260359fb 100644 --- a/angularjs/angular-route-tests.ts +++ b/angularjs/angular-route-tests.ts @@ -34,3 +34,7 @@ $routeProvider }) .otherwise({ redirectTo: '/' }) .otherwise({ redirectTo: ($routeParams?: ng.route.IRouteParamsService, $locationPath?: string, $locationSearch?: any) => "" }); + + +var current: ng.route.ICurrentRoute; +current.locals['test-key'] = 'test-value';