0
我試圖不使用過濾器使用ngrepeat顯示一些來自Firebase-db的數據。用certan id過濾出angular1對象使用ngRepeat
[$add: function, $save: function, $remove: function, $keyAt: function, $indexFor: function…]
0: Object
1: Object
$$hashKey: "object:31"
$id: "forad"
$priority: null
info: Object
namn: "John Doe"
plats: 1
<ion-item ng-repeat="l in notes | filter:{ 'id': forad }" class="note-listing">
<h1>Den {{l.lokal[0].datum}} är lokalen bokad av {{l.lokal[0].namn}}</h1>
<h3> {{l.info.plats}}. {{l.info.namn}}</h3>
</ion-item>
我wnat過濾掉,這樣它不通過ngRepeat得到ittarated並在屏幕上顯示
我會在傳遞給'ng-repeat'之前預先過濾這些數據 - 性能更好。 –
我試過了,但是我沒有做,因爲我使用的是火力堡綁定的ald版本 –