app.js 836 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 'use strict';
  2. /**
  3. * @ngdoc overview
  4. * @name odooMobileDocsApp
  5. * @description
  6. * # odooMobileDocsApp
  7. *
  8. * Main module of the application.
  9. */
  10. angular
  11. .module('odooMobileDocsApp', [
  12. 'ngAnimate',
  13. 'ngCookies',
  14. 'ngResource',
  15. 'ngRoute',
  16. 'ngSanitize',
  17. 'ngTouch'
  18. ])
  19. .config(function ($routeProvider) {
  20. $routeProvider
  21. .when('/', {
  22. templateUrl: 'views/home.html',
  23. controller: 'MainCtrl',
  24. controllerAs: 'main'
  25. })
  26. .when('/mobile', {
  27. templateUrl: 'views/pages/mobile/index.html',
  28. controller: 'MobileCtrl',
  29. controllerAs: 'mobile'
  30. })
  31. .when('/acerca', {
  32. templateUrl: 'views/pages/acerca.html',
  33. controller: 'AcercaCtrl',
  34. controllerAs: 'acerca'
  35. })
  36. .otherwise({
  37. redirectTo: '/'
  38. });
  39. });