【问题标题】:Table with ng-repeat带有 ng-repeat 的表
【发布时间】:2016-07-11 23:18:44
【问题描述】:

我正在尝试使用 ng-repeat 构建表格,但我也想使用工具栏。该表应如下所示,但例如在“内战之后”下,我需要再添加三行。

<md-grid-tile><h4>Radiographic Feature Type</h4></md-grid-tile>
        <md-grid-tile><h4>You: Mean % Missed Feature</h4></md-grid-tile>
        <md-grid-tile><h4>ALL PARTICIPANTS: % Missed Feature</h4></md-grid-tile>


        <md-grid-tile>




        </md-grid-tile>


        <md-grid-tile ng-repeat-start="thisCase in caselist | limitTo : 5">


        </md-grid-tile>


        <md-grid-tile ng-repeat-end="">


        </md-grid-tile>


    </md-grid-list>

非常感谢所有帮助,很抱歉,我刚开始编码,没有太多经验。

【问题讨论】:

    标签: html css angularjs angularjs-ng-repeat tabular


    【解决方案1】:

    根据官方文档应该是这样的

           <ul class="phones">
              <li ng-repeat="phone in phones | filter:query | orderBy:orderProp">
                <span>{{phone.name}}</span>
                <p>{{phone.snippet}}</p>
              </li>
            </ul>
    

    尝试将 li 标签更改为您的 md-grid-tite,您应该添加 {{}} 以将内容保留在那里

    这里有很棒的教程 https://docs.angularjs.org/tutorial/step_01

    【讨论】:

      猜你喜欢
      • 2013-08-11
      • 2016-12-26
      • 2015-12-02
      • 2016-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-05
      • 1970-01-01
      相关资源
      最近更新 更多