Tests for ICurrentRoute property

This commit is contained in:
Bogdan I. Bursuc
2015-06-09 08:03:03 +03:00
parent 3e4f7b5ab2
commit 2f4323724b

View File

@@ -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';