0
我在我的應用程序和點擊這樣在單擊超級鏈接URL中angularjs
<a href="/student/{{student.id}}">{{student.name}}</a>
超鏈接使用ngRoute得到改變的值被改爲
http://localhost/student/1
,而不是
http://localhost/bootstrap/aroute/index.html#/student/1
路線提供者代碼是
.when('/student/:id',{
templateUrl : 'studentdetails.html',
controller : 'MainController'
})
這是爲什麼,以及如何解決它。
應該不是您的href是{{student.name}}? –