我试图用ngRoute来配置我的应用程序我的路线,但由于某些原因,它仍然没有工作。我搜索了很多,似乎我的代码是好的。我要告诉如何我做它:角路线越来越问题
我a.href:
<a href="#/bancodedados">
我的配置路线:
academico.config(function($routeProvider){
var home = {
controller : "home",
templateUrl : "js/plugins/angular/views/home.html"
}
var bancodedados = {
controller : "bancodedados",
templateUrl : "js/plugins/angular/views/bancodedados.html"
}
$routeProvider
.when("/", home)
.when("/bancodedados", bancodedados);
});
但由于某种原因,应用重定向我http://localhost/joli/#!/#%2Fbancodedados
,并仍然是O ñ相同的意见。
你能分享你的html +完整的js文件吗? –