The company website

app.js 706B

12345678910111213141516171819202122232425
  1. 'use strict';
  2. angular.module("farm", [])
  3. .config(["$routeProvider", "$locationProvider", function ($routeProvider, $locationProvider) {
  4. //$locationProvider.html5Mode(false);
  5. $routeProvider.when("/", {
  6. templateUrl: "partials/home.html"
  7. })
  8. .when("/services", {
  9. templateUrl: "partials/services.html"
  10. })
  11. .when("/company", {
  12. templateUrl: "partials/company.html"
  13. })
  14. .when("/contact", {
  15. templateUrl: "partials/contact.html"
  16. })
  17. .when("/about", {
  18. templateUrl: "partials/about.html"
  19. })
  20. .otherwise({
  21. redirectTo: "/"
  22. });
  23. }]);