我的spa移动应用程序可以正确地使用角度路由,但是对于html文件的角度路由和另一个用于剑道路由的加载模板,每次哈希更改会产生多个请求!如何禁用kendo路由并仅使用角度路由?
我使用这个角度路线
routeProvider
.when("/", {
templateUrl: "./views/home.html",
controller: "HomeController",
})
.when("/details/:itemId", {
templateUrl: "./views/details.html",
controller: "DetailsController",
})
.when("/menu", {
templateUrl: "./views/menu.html",
controller: "MenuController",
})
.when("/cart", {
templateUrl: "./views/cart.html",
controller: "CartController",
})
.when("/account", {
templateUrl: "./views/account.html"
,controller: "AccountController"
})
.when("/about", {
templateUrl: "./views/about.html",
controller: "AboutController",
})
.when("/done", {
templateUrl: "./views/done.html",
controller: "DoneController",
})
;