Javascript 如何禁用angularJS路由系统
我在angular 1中开发了一个项目,我正在使用routeProvider和locationProvider。但是现在项目已经“准备就绪”,我需要停用路由系统,也就是说,当URL更改时,当我转到另一个页面时,我需要重新加载该页面 有人必须这样做吗 以下是我在routes.js页面上使用的路由系统:Javascript 如何禁用angularJS路由系统,javascript,angularjs,routes,Javascript,Angularjs,Routes,我在angular 1中开发了一个项目,我正在使用routeProvider和locationProvider。但是现在项目已经“准备就绪”,我需要停用路由系统,也就是说,当URL更改时,当我转到另一个页面时,我需要重新加载该页面 有人必须这样做吗 以下是我在routes.js页面上使用的路由系统: (function () { 'use strict'; angular .module('solicitardocumentos') .config(Config); function Con
(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('!');
}
})();