source : config.js

  1. (function () {
  2. 'use strict';
  3. angular
  4. .module('app')
  5. .config(stateConfig)
  6. /**
  7. * Configures ui-router's states.
  8. * @memberof app
  9. * @ngdoc config
  10. * @name config
  11. * @param {Service} $urlRouterProvider Watches $location and provides interface to default state
  12. */
  13. function stateConfig($urlRouterProvider) {
  14. $urlRouterProvider.otherwise('/search')
  15. }
  16. })();