我在哪裏可以找到有關在新的angular 1.4路由器中激活html5模式的任何文檔。新的Angular路由器中的HTML5模式
沒有什麼對Angular Router gihtub repo,或official docs
我在哪裏可以找到有關在新的angular 1.4路由器中激活html5模式的任何文檔。新的Angular路由器中的HTML5模式
沒有什麼對Angular Router gihtub repo,或official docs
https://docs.angularjs.org/guide/$location
(function(){
'use strict';
var app = angular.module('app', []);
app.config(['$locationProvider', function($locationProvider) {
$locationProvider.html5Mode(true);
}]);
})();
只需要向上看一下'配置'在角度1.5中是不需要的(因爲任何原因它都會中斷) – HireLee
是的,我的糟糕的遺留代碼。固定 – ssuperczynski
我不明白爲什麼你會做的比配置$ locationProvider,因爲你一直做的任何其他。 –