我有一个以角度1开发的项目,我正在使用routeProvider和locationProvider。但是现在项目已经准备就绪了,我需要停用路由系统,也就是说,当URL更改时,当我转到另一个页面时,我需要重新加载页面。
有没有人必须这样做?
这是我在pages.js页面上使用的路由系统:
(function () {
'use strict';
angular
.module('solicitardocumentos')
.config(Config);
function Config($routeProvider, $locationProvider) {
$routeProvider
.when('/solicitardocumentos', {
templateUrl: 'modulosolicitardocumentos/template/index.html',
controller: 'solicitardocumentosController',
controllerAs: 'vm'
});
$locationProvider.html5Mode(true).hashPrefix('!');
}
})();