app.js 543 B

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. /**
  3. * @ngdoc overview
  4. * @name deivDashApp
  5. * @description
  6. * # deivDashApp
  7. *
  8. * Main module of the application.
  9. */
  10. angular
  11. .module('deivDashApp', [
  12. 'ngResource',
  13. 'ngRoute',
  14. 'chart.js'
  15. ])
  16. .config(function ($routeProvider) {
  17. $routeProvider
  18. .when('/', {
  19. templateUrl: 'views/main.html',
  20. controller: 'MainCtrl'
  21. })
  22. .when('/about', {
  23. templateUrl: 'views/about.html',
  24. controller: 'AboutCtrl'
  25. })
  26. .otherwise({
  27. redirectTo: '/'
  28. });
  29. });