オブジェクトからのデータを出力する単純なng-repeatがビュー内にあります。私は、印刷は、次のようになりますよ角1:オブジェクトのプロパティに応じてng-repeat出力をフィルタします。
<div
ng-repeat="item in toDoItems |
orderBy: 'createdAt'
track by item.createdAt"
>
<b>Content:</b> {{item.content}}
</div>
オブジェクト:
{
"content" : "some content",
"createdAt" : "1459401001460",
"completed" : false
},
{
"content" : "some content",
"createdAt" : "1459401001325",
"completed" : true
}
は私だけ"completed"
properyの値false
を持っているアイテムを印刷したいです。私はこれを試してみましたが、それは私にエラー与えるだろう
:このためng-repeat only objects with specific property value - custom filter?
だけ 'NG-show'を使用:)下記の私の答え – manish