请帮助我刷新浏览器后获取HTTP var app = angular.module('MyApp', ['ngRoute'])
app.config(function ($routeProvider, $locationProvider) {
$routeProvider
.when("/Contact", {
templateUrl: '/ApiClient/Contact/AdminContact.html',
controller:'ContactCtrl'
}) .otherwise('/', {
templateUrl: "ApiClient/Home/Home.html"
})
的原因
<base href="/" />
<div class="col-lg-1">
<a href="Contact">Contact</a>
</div>
HTML
{{1}}
答案 0 :(得分:0)
我猜你的路径错了,试试吧
}).otherwise('/', {
templateUrl: "/ApiClient/Home/Home.html"
})