How to use the angular-ui-router.forEach function in angular-ui-router

To help you get started, we’ve selected a few angular-ui-router 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 ui-router / core / test / ng1 / stateSpec.js View on Github external
var module = angular.mock.module;
var uiRouter = require("angular-ui-router");
var extend = uiRouter.extend;
var forEach = uiRouter.forEach;
var services = uiRouter.services;
var UrlMatcher = uiRouter.UrlMatcher;


describe('state', function () {

  var $injector, $stateProvider, locationProvider, templateParams, template, ctrlName, errors;

  beforeEach(module('ui.router', function($locationProvider) {
    errors = [];
    locationProvider = $locationProvider;
    $locationProvider.html5Mode(false);
  }));

  var log, logEvents, logEnterExit;
  function callbackLogger(state, what) {