Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. // configure our routes
  2. spApp.config(function($routeProvider,$httpProvider) {
  3. $routeProvider
  4.  
  5. .when('/', {
  6. templateUrl : 'pages/home.html',
  7. controller : 'mainController'
  8. })
  9.  
  10.  
  11. // route for the home page
  12. .when('/home', {
  13. templateUrl : 'pages/home.html',
  14. controller : 'mainController'
  15. })
  16.  
  17. // route for the about page
  18. .when('/account', {
  19. templateUrl : 'pages/account.html',
  20. controller : 'accountController'
  21. })
  22.  
  23. // route for the about page
  24. .when('/form', {
  25. templateUrl : 'pages/form.html',
  26. controller : 'formController'
  27. })
  28.  
  29. // route for the contact page
  30. .when('/contact', {
  31. templateUrl : 'pages/contact.html',
  32. controller : 'contactController'
  33. });
  34.  
  35. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement