【问题标题】:How do I make angular-ui bootstrap accordion group work in html5mode如何使 angular-ui 引导手风琴组在 html5mode 中工作
【发布时间】:2013-04-23 20:31:45
【问题描述】:

如果我在我的配置模块中启用 html5mode 为 true,打开手风琴组的“超链接”会将 url 重新路由回基本 url。不仅手风琴组不打开,而且您被重新路由。未启用 html5mode 时,我的手风琴组工作正常。

是否有一个简单的解决方法,或者我将不得不深入研究 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>

【问题讨论】:

    标签: angularjs angular-ui angularjs-routing


    【解决方案1】:

    答案是不要使用旧版本的 Angularjs。问题出在 1.0.4 上。移动到 1.0.6 或更高版本,问题就消失了。

    别像我这样老顽固。更新你的图书馆,孩子们。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-07-21
      相关资源
      最近更新 更多