diff --git a/index.html b/index.html index 1660c37..d50f0ab 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@ +
diff --git a/scripts/app.js b/scripts/app.js index acf1832..3878da7 100644 --- a/scripts/app.js +++ b/scripts/app.js @@ -1,13 +1,14 @@ var app = angular.module("app", ["ngRoute"]); app.config( - function ($routeProvider) + function ($routeProvider, $locationProvider) { $routeProvider .when("/", {templateUrl: "views/news.html", controller: "news"}) .when("/content", {templateUrl: "views/content.html", controller: "content"}) .when("/about", {templateUrl: "views/about.html", controller: "about"}) .when("/login", {templateUrl: "views/login.html", controller: "login"}); + $locationProvider.html5mode(true); } );