Impossible de faire marche le composant collection repeat dans ma page. très pénible.
collection-repeat doesnt work in all my page. I need help.
Tu pourrais fournir les informations de ton système avec la commande $ ionic info
, et si possible une partie du code que tu test (avec les données si possible) ,ca aiderait pour investiguer
les informations du système
Cordova CLI: Not installed
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.3.1
Xcode version: Xcode 7.2.1 Build version 7C1002
<div class="list">
<a collection-repeat="item in items | orderBy :'-actu_id' | filter:item:strict" class="item item-thumbnail-left"
ng-href="#/getActualiteId/{{item.actu_id}}">
<img ng-src="http://www.douanes.ci/admin/images/actualite/{{item.actu_id}}.jpg">
<h2>{{ item.actu_titre }}</h2>
<p>{{ item.actu_resume }}</p>
<p>Edité le {{ item.actu_date | date:'fullDate'}}</p>
</a>
</div>
Je fournir un tableau json
Need Your Help???
please i need your help
Start by stripping your collection-repeat. Just iterate over item in items without all the filters and check if it works.
how do you stripping your collection
this is my code
look my code above please
Yes, I see your code but off course i can’t try it out since I have no clue where your data is coming from or how it looks. Do you get an error message in your debugger?
non error in my debugger
Then what do you mean by doesn’t work? You don’t see anything? Or… You need to explain a little bit more about your issue.
Did you already try to resize your window? Sometimes the items need to be recalculated. Did you already tried specifying a width to the collection-repeat?
What I meant by stripping is, remove all the filters and other stuff out of your collection repeat, so just do something like this:
<div class="list">
<a collection-repeat="item in items">
{{ item }}
</a>
</div>
this is my last code {{ item.actu_resume }} Edité le {{ item.actu_date | date:‘fullDate’}}
{{ item.actu_titre }}
this is my screen…
Collection-repeat=“item in items” class=“item item-thumbnail-left”
Could you please format the code correctly or make a Pen or Fiddle or something? Does your repeater works if you just use ng-repeat? In other words, does it break down if you’re not using the collection repeat as well?