How to use the @uirouter/core.Category.TRANSITION function in @uirouter/core

To help you get started, we’ve selected a few @uirouter/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NationalBankBelgium / stark / starter / src / app / router.config.ts View on Github external
export function routerConfigFn(router: UIRouter): void {
	router.trace.enable(Category.TRANSITION);
	// Enable UI-Router visualizer here if needed (for development purposes only)
	// if (ENV === "development") {
	// 	router.plugin(Visualizer);  // Visualizer should be imported from "@uirouter/visualizer"
	// }
}
github NationalBankBelgium / stark / showcase / src / app / router.config.ts View on Github external
export function routerConfigFn(router: UIRouter): void {
	router.trace.enable(Category.TRANSITION);
	// Enable UI-Router visualizer here if needed (for development purposes only)
	// if (ENV === "development") {
	// 	router.plugin(Visualizer);  // Visualizer should be imported from "@uirouter/visualizer"
	// }
}
github spinnaker / deck / app / scripts / modules / core / src / bootstrap / transitionTrace.toggle.ts View on Github external
const changeTraceSetting = (newValue: string) => {
      const trace = $uiRouter.trace;
      trace.disable();
      if (typeof newValue === 'string') {
        if (newValue.toUpperCase() === 'TRUE') {
          trace.enable(Category.TRANSITION);
        } else if (newValue.toUpperCase() === 'ALL') {
          trace.enable();
        } else {
          const traceValues = newValue.split(',').map(str => str.trim().toUpperCase());
          trace.enable(...(traceValues as any));
        }
      }
    };
github ui-router / sample-app-angular / src / app / router.config.ts View on Github external
export function routerConfigFn(router: UIRouter) {
  const transitionService = router.transitionService;
  requiresAuthHook(transitionService);
  googleAnalyticsHook(transitionService);

  router.trace.enable(Category.TRANSITION);
  router.plugin(Visualizer);
}