route.js 779 B

1234567891011121314151617181920212223242526
  1. /**
  2. * Created by pk on 08.11.2016.
  3. */
  4. angular.module('SolvIn')
  5. .config(function ($stateProvider) {
  6. $stateProvider
  7. .state({
  8. name: 'wizard',
  9. url: '/wizard?id',
  10. controller: 'WizardController',
  11. templateUrl: 'components/wizard/wizard.html'
  12. })
  13. .state({
  14. name: 'intro',
  15. url: '/',
  16. controller: 'IndexController',
  17. templateUrl: 'components/intro/intro.html'
  18. })
  19. .state({
  20. name: 'otherwise',
  21. url: '*path',
  22. controller: function ($state) {
  23. $state.go('intro');
  24. }
  25. });
  26. });