2013-04-23 33 views
0

如果我在配置模块中启用html5mode为true,则打开accordion-group的“超链接”会将url重新路由回基础url。手风琴团队不仅没有开放,而且你已经改变了路线。当html5mode没有启用时,手风琴组工作正常。如何在html5mode中使angular-ui bootstrap accordion group工作

有没有一个简单的解决方案,或者我将不得不深入angularjs-ui源?或者我只是运气好html5mode? 我的手风琴代码非常简单:

<accordion close-others='true'> 
<accordion-group ng-repeat='trip in retrieved.iss' heading='ISS: {{trip.date}}'> 
    <p class='deleteItem' ng-click='deleteItem(trip.uniqueCount)'>X</p> 
    <p><span class='btn-group ' data-toggle='buttons-checkbox'> 
     <button type='button' class='btn btn-primary small-btn' ng-model='individualRadioModel' btn-radio="'Mine'">Mine</button> 
     <button type='button' class='btn btn-primary small-btn' ng-model='individualRadioModel' btn-radio="'All'">All</button> 
     </span></p> 
    <p ng-repeat='student in trip.studentList | matchStudents:individualRadioModel'>{{student}}</p> 
</accordion-group> 

回答

0

的答案是使用不使用Angularjs的旧版本。问题在于1.0.4。移至1.0.6或更高版本,问题消失。

不要像我这样老古板。更新你的图书馆,孩子。

相关问题