当前位置: 首页 > 工具软件 > md-pages > 使用案例 >

md-list

秋阳旭
2023-12-01

demo
https://material.angularjs.org/latest/demo/list

API list
https://material.angularjs.org/latest/api/directive/mdList

API listItem
https://material.angularjs.org/latest/api/directive/mdListItem

最简代码

html

  <md-list>
    <md-list-item class="md-2-line" ng-repeat="item in todos" ng-click="null">
        <h3>{{item}}</h3>
    </md-list-item>
  </md-list>

js

$scope.todos = [1, 2, 3, 4];
 类似资料: