import MatchesTableController from './matchesTable.controller.js';

function matchesTableRouterConfig($stateProvider) {
  'ngInject';
  $stateProvider.state('app.matchesTable', {
    url: '/matchesTable/{divisionIndex:[0-9]}',
    resolve: MatchesTableController.resolve,
    templateUrl: 'app/matchesTable/matchesTable.html',
    controller: 'MatchesTableController',
    controllerAs: 'matchesTableCtrl'
  });
}

export default matchesTableRouterConfig;

import MatchesTableController from './matchesTable.controller.js';

function matchesTableRouterConfig($stateProvider, $urlRouterProvider) {
  'ngInject';

  $stateProvider.state('app.matchesTable', {
    url: '/matches-table/{divisionIndex:[0-9]}',
    resolve: MatchesTableController.resolve,
    templateUrl: 'app/matchesTable/matchesTable.html',
    controller: 'MatchesTableController',
    controllerAs: 'matchesTableCtrl'
  });

  $urlRouterProvider.when('/matchesTable/{divisionIndex:[0-9]}', $stateParams => {
    'ngInject';

    return '/matches-table/' + $stateParams.divisionIndex;
  });
}

export default matchesTableRouterConfig;

Change url of matchesTable