Mal*_*001 5 angularjs ng-repeat angularjs-ng-repeat
我有一个重复列表,如果$ index大于1,我怎么在列表中显示一个按钮?
plunkr开始:Plunkr
ng-if仅在角度1.1.5及更高版本中可用.要么升级Angular版本,要么使用ng-show代替:
<p data-ng-show="$index > 1">
<a href="#">This button will only show when index is more than 1</a>
</p>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4389 次 |
| 最近记录: |