route.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. starter.config(function ($stateProvider) {
  2. $stateProvider.state('workflow', {
  3. url: '/index',
  4. templateUrl: 'templates/workflow.html',
  5. controller: 'WorkFlowCtrl'
  6. })
  7. .state('workflow-manage', {
  8. url: '/workflow-manage',
  9. templateUrl: 'templates/workflow-manage.html',
  10. controller: 'WorkFlowManageCtrl'
  11. })
  12. .state('workflow-apply', {
  13. url: '/workflow-apply',
  14. templateUrl: 'templates/workflow-apply.html',
  15. controller: 'WorkFlowApplyCtrl'
  16. })
  17. .state('workflow-templatecreate', {
  18. url: '/workflow-templatecreate',
  19. templateUrl: 'templates/workflow-templatecreate.html',
  20. controller: 'WorkFlowTemplateCreateCtrl'
  21. })
  22. .state('workflow-templateitemset', {
  23. url: '/workflow-templateitemset/:id',
  24. templateUrl: 'templates/workflow-templateitemset.html',
  25. controller: 'WorkFlowTemplateItemSetCtrl'
  26. })
  27. .state('workflow-templateitemfield', {
  28. url: '/workflow-templateitemfield/:id',
  29. templateUrl: 'templates/workflow-fieldtype.html',
  30. controller: 'FormFieldTypeCtrl'
  31. })
  32. .state('workflow-templatedetail', {
  33. url: '/workflow-templatedetail/:id',
  34. templateUrl: 'templates/workflow-templatedetail.html',
  35. controller: 'WorkFlowTemplateDetailCtrl'
  36. })
  37. });