Skip to content

Commit 48c5af6

Browse files
feat(UIRouter): Add trace global to the UIRouter object
1 parent bd626fc commit 48c5af6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/router.ts

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { values, removeFrom } from "./common/common";
1414
import { isFunction } from "./common/predicates";
1515
import { UrlService } from "./url/urlService";
1616
import { LocationServices, LocationConfig } from "./common/coreservices";
17+
import { Trace, trace } from "./common/trace";
1718

1819
/** @hidden */
1920
let _routerInstance = 0;
@@ -37,6 +38,9 @@ export class UIRouter {
3738
/** @hidden */
3839
$id: number = _routerInstance++;
3940

41+
/** Provides trace information to the console */
42+
trace: Trace = trace;
43+
4044
/** Provides services related to ui-view synchronization */
4145
viewService = new ViewService();
4246

0 commit comments

Comments
 (0)