route.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. starter.config(function ($stateProvider) {
  2. $stateProvider
  3. .state('notice', {
  4. url: '/index',
  5. templateUrl: 'templates/notice.html',
  6. controller: 'NoticeCtrl'
  7. })
  8. .state('notice-details', {
  9. url: '/notice-details/:id',
  10. templateUrl: 'templates/notice-details.html',
  11. controller: 'NoticeDetailsCtrl'
  12. })
  13. .state('power-set', {
  14. url: '/power-set',
  15. templateUrl: 'templates/power-set.html',
  16. controller: 'PowerSetCtrl'
  17. })
  18. .state('postnotice', {
  19. url: '/postnotice/:id',
  20. templateUrl: 'templates/postnotice.html',
  21. controller: 'PostNoticeCtrl'
  22. })
  23. .state('notice-result', {
  24. url: '/notice-result/:id&:type',
  25. templateUrl: 'templates/notice-result.html',
  26. controller: 'NoticeResultCtrl'
  27. })
  28. .state('notice-posted', {
  29. url: '/notice-posted',
  30. templateUrl: 'templates/notice-posted.html',
  31. controller: 'NoticePostedCtrl'
  32. })
  33. .state('result-details', {
  34. url: '/result-details/:type',
  35. templateUrl: 'templates/result-details.html',
  36. controller: 'ResultDetailsCtrl'
  37. })
  38. });