route.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. starter.config(function ($stateProvider) {
  2. $stateProvider.state('task', {
  3. url: '/index',
  4. templateUrl: 'templates/task.html',
  5. controller: 'TaskCtrl'
  6. })
  7. .state('task-create', {
  8. url: '/task-create',
  9. templateUrl: 'templates/task-create.html',
  10. controller: 'TaskCreateCtrl'
  11. })
  12. .state('task-man', {
  13. url: '/task-man',
  14. templateUrl: 'templates/task-man.html',
  15. controller: 'TaskManCtrl'
  16. })
  17. .state('postedtask', {
  18. url: '/postedtask',
  19. templateUrl: 'templates/postedtask.html',
  20. controller: 'PostedTaskCtrl'
  21. })
  22. .state('task-details', {
  23. url: '/task-details/:id',
  24. templateUrl: 'templates/task-details.html',
  25. controller: 'TaskDetailsCtrl'
  26. })
  27. .state('editchildtask', {
  28. url: '/editchild/:id',
  29. templateUrl: 'templates/editchildtask.html',
  30. controller: 'EditChildTaskCtrl'
  31. })
  32. .state('task-set', {
  33. url: '/task-details/:id/:isheader',
  34. templateUrl: 'templates/task-set.html',
  35. controller: 'TaskSetCtrl'
  36. })
  37. });