Angularjs ui-sref无法在uib-accordion标题内工作

时间:2016-03-20 15:36:49

标签: angularjs accordion

我使用过<uib-accordion>。我已将<a ui-sref>用于<uib-accordion-group>并成功运作。但是我也想<a ui-sref>使用<uib-accordion-heading>,现在还没有用。

请在下面找到代码段,

<uib-accordion >
    <uib-accordion-group  ng-repeat="name in names" ng-scroll="name in names">
        <uib-accordion-heading >
            <a ui-serf="formname" ui-sref-opts="{reload: true, notify: true}" > {{ names.name }}  </a>
        </uib-accordion-heading>
            <div class="list-group name_list">          
                <a ui-sref="anotherForm" ui-sref-opts="{reload: true, notify: true}" class="list-group-item" ng-repeat="id in names.name" ng-scroll="id in names.name" ng-model="namelist" > {{ name.first }}  </a>
            </div>
    </uib-accordion-group>
</uib-accordion>

0 个答案:

没有答案