Collection-repeat ne marche pas. collection-repeat doesn't work


#1

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.


#2

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


#3

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


#4

Actualiser
<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>

#5

Je fournir un tableau json


#6

Need Your Help???


#7

please i need your help


#8

Start by stripping your collection-repeat. Just iterate over item in items without all the filters and check if it works.


#9

how do you stripping your collection


#10

this is my code

look my code above please


#11

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?


#12

non error in my debugger


#13

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?


#14

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>

#15

this is my last code


{{ item.actu_titre }}


{{ item.actu_resume }}


Edité le {{ item.actu_date | date:‘fullDate’}}



#16

this is my screen…


#17

Collection-repeat=“item in items” class=“item item-thumbnail-left”


#18

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?


#19


#20