Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. 'use strict';
  2.  
  3. /**
  4. * @ngdoc overview
  5. * @name exampleClientApp
  6. * @description
  7. * # exampleClientApp
  8. *
  9. * Main module of the application.
  10. */
  11. angular
  12. .module('exampleClientApp', [
  13. 'ngAnimate',
  14. 'ngCookies',
  15. 'ngResource',
  16. 'ngRoute',
  17. 'ngSanitize',
  18. 'ngTouch',
  19. 'Rest'
  20. ])
  21. .config(function ($routeProvider) {
  22. $routeProvider
  23. .when('/', {
  24. templateUrl: 'views/main.html',
  25. controller: 'UserController',
  26. controllerAs: 'userCtrl'
  27. })
  28. .when('/about', {
  29. templateUrl: 'views/about.html',
  30. controller: 'AboutCtrl',
  31. controllerAs: 'about'
  32. })
  33. .otherwise({
  34. redirectTo: '/'
  35. });
  36. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement