Disable HTML5 routes

Look into the docs for enableHTML5mode()
This commit is contained in:
Thomas Wade 2018-10-18 15:49:11 +10:30
parent a6e492b96a
commit 478866631f
No known key found for this signature in database
GPG Key ID: 9E41F0F2D7A350E4

View File

@ -9,7 +9,7 @@ app.config(
.when("/about", {templateUrl: "views/about.html", controller: "about"})
.when("/faq", {templateUrl: "views/faq.html", controller: "faq"})
.otherwise("<h1>yeey</h1>");
$locationProvider.html5mode({enabled: true, requireBase: false});
// $locationProvider.html5mode({enabled: true, requireBase: false});
}
);