app.routes.js 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. app.config(['$routeProvider', '$locationProvider', function($routeProvider,$locationProvider){
  2. $locationProvider.hashPrefix('');
  3. $routeProvider
  4. .when('/global_map',{
  5. templateUrl: 'app/views/map/globalMap.template.html',
  6. controller: 'GlobalMap'
  7. })
  8. .when('/global_map/europe',{
  9. templateUrl: 'app/views/map/europMap.template.html',
  10. controller: 'Europe'
  11. })
  12. .when('/global_map/europe/swiss',{
  13. templateUrl: 'app/views/map/country/swissMap.template.html',
  14. controller: 'Swiss'
  15. })
  16. .when('/',{
  17. templateUrl: 'app/views/homePage.template.html',
  18. controller: ''
  19. })
  20. .when('/articles-users', {
  21. templateUrl: 'app/views/articles-users.template.html',
  22. controller: 'ArticlesUsers'
  23. })
  24. .when('/articles/:id', {
  25. templateUrl: 'app/views/article-details.template.html',
  26. controller: 'ArticleDetails'
  27. })
  28. .when('/user-account', {
  29. templateUrl: 'app/views/userAccount.template.html',
  30. controller: 'UserAccount'
  31. })
  32. .otherwise('/')
  33. }]);