route.js 736 B

12345678910111213141516171819202122232425
  1. starter.config(function ($stateProvider) {
  2. $stateProvider.state('schedule', {
  3. url: '/index',
  4. templateUrl: 'templates/schedule.html',
  5. controller: 'ScheduleCtrl'
  6. })
  7. .state('schedule-posted', {
  8. url: '/schedule/schedule-posted',
  9. templateUrl: 'templates/schedule-posted.html',
  10. controller: 'SchedulePostedCtrl'
  11. })
  12. .state('schedule-create', {
  13. url: '/schedule-create/:id',
  14. templateUrl: 'templates/schedule-create.html',
  15. controller: 'ScheduleCreateCtrl'
  16. })
  17. .state('schedule-details', {
  18. url: '/schedule/schedule-details/:id',
  19. templateUrl: 'templates/schedule-details.html',
  20. controller: 'ScheduleDetailsCtrl'
  21. })
  22. });