github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/controller/static/app/config.routes.js (about)

     1  (function() {
     2      'use strict';
     3  
     4      angular
     5          .module('shipyard')
     6          .config(getRoutes);
     7  
     8      getRoutes.$inject = ['$stateProvider', '$urlRouterProvider'];
     9  
    10      function getRoutes($stateProvider, $urlRouterProvider) {	
    11          $stateProvider
    12              .state('error', {
    13                  templateUrl: 'app/error/error.html',
    14                  authenticate: false
    15              });
    16          $urlRouterProvider.otherwise(function ($injector) {
    17              var $state = $injector.get('$state');
    18              $state.go('dashboard.containers');
    19          });
    20      }
    21  })();