code: function configAdminRoute($urlRouterProvider, $stateProvider) {
      var adminState = {
        name: 'admin',
        url: '/admin',
        abstract: true,
        templateUrl: 'app/admin/admin.html',
        controller: 'AdminController',
        controllerAs: 'vm'
      };
  
      $urlRouterProvider.when('/admin', '/admin/');
      $stateProvider.state(adminState);
    }
docs: route config function configuring the passed $stateProvider