Enable transition tracing to print transition information to the console, in order to help debug your application.
Tracing logs detailed information about each Transition to your console.
To enable tracing, import the trace singleton and enable one or more categories.
ES6
import {trace} from "ui-router-ng2"; //or"angular-ui-router"
trace.enable(1, 5); //TRANSITION andVIEWCONFIG
CJS
let trace = require("angular-ui-router").trace; //or"ui-router-ng2"
trace.enable("TRANSITION", "VIEWCONFIG");
Globals
let trace = window["angular-ui-router"].trace; // or "ui-router-ng2"trace.enable(); // Trace everything (very verbose)
UI-Router Transition Tracing
Enable transition tracing to print transition information to the console, in order to help debug your application. Tracing logs detailed information about each Transition to your console.
To enable tracing, import the trace singleton and enable one or more categories.
ES6
import {trace} from "ui-router-ng2"; // or "angular-ui-router" trace.enable(1, 5); // TRANSITION and VIEWCONFIG
CJS
let trace = require("angular-ui-router").trace; // or "ui-router-ng2" trace.enable("TRANSITION", "VIEWCONFIG");
Globals
let trace = window["angular-ui-router"].trace; // or "ui-router-ng2" trace.enable(); // Trace everything (very verbose)
trace