我的网址是这样的:http://localhost:3000/family/#/savings/subscribe/123456与angularJs重定向到其他项目
在此页面,我想点击一个按钮,我重定向到与骨干由JS 另一个项目的其他页面我试图添加所需的URI与href-和NG-HREF http://localhost:3000/admin#exemption
:但它总是重定向我http://localhost:3000/family/#/admin#exemption
angular.module('app', ['ng', 'ngRoute', 'ui.bootstrap', 'angularMoment', 'chart.js'])
.config(fac['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/index', {
templateUrl: '/family/index',
controller: 'IndexCtrl'
})
.when('/family/exemption', {
templateUrl: 'exemption-search-view'
})
当我给需要的页面模板,我得到的HTML视图但URI:http://localhost:3000/family/#/admin#exemption
如果你想在链接中删除你的hashtag,你可以按照这个链接:https://scotch.io/tutorials/pretty-urls-in-angularjs-removing-the-hashtag – trichetriche