From 2f4323724b8344f7ffa302340772e31355eaa220 Mon Sep 17 00:00:00 2001 From: "Bogdan I. Bursuc" Date: Tue, 9 Jun 2015 08:03:03 +0300 Subject: [PATCH] Tests for ICurrentRoute property --- angularjs/angular-route-tests.ts | 4 ++++ 1 file changed, 4 insertions(+) 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';