【问题标题】:Child popup tr + angular Js子弹出 tr + angular Js
【发布时间】:2016-01-27 12:25:23
【问题描述】:

我的要求与此 jsfiddle 相同,但他们重复 tbody 而不是 tr 任何人都可以为我提供相同的重复 tr 而不是 tbodyhttp://jsfiddle.net/Pixic/VGgbq/ 我已将 ng-repeat 从 tbody 更改为 tr 但它不起作用。请帮我。我是 Angular js 的新手。

<tbody data-ng-switch on="dayDataCollapse[$index]">
    <tr data-ng-repeat="storedata in storeDataModel.storedata" 
        class="clickableRow"  
        title="Click to toggle collapse/expand day summaries for this store."  
        data-ng-click="selectTableRow($index, storedata.store.storeId)" >
        <td>{{storedata.store.storeId}}</td>
        <td>{{storedata.store.storeName}}</td>
    </tr>
</tbody>

【问题讨论】:

    标签: angularjs html-table parent-child children


    【解决方案1】:

    您有 data-ng-switch 指令,但没有一个 ng-switch-whenng-switch-default,请尝试不使用此表达式运行:data-ng-switch on="dayDataCollapse[$index]"

    AngularJS ngSwitch docs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多