Double ng-repeat dans un même élément
Bonjour,
J'aimerais faire un tripple ng-repeat dans un tableau.
Voici le JSON que j'obtiens :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
$scope.data = [
{
point: 'sur la table',
description: 'emplacement de travail',
twoRead: true,
curve: [
{
curveNo: 'TS501',
....
adjustment: [
{
analysis: 'Test1',
date: '2014-10-30'
},
{
analysis: 'Test2',
date: '2014-10-31'
}]
}
}] |
Donc voici ce que j'aurais de besoin !
Code:
1 2 3 4 5 6 7 8
|
<tbody data-ng-repeat="item in data">
<tr data-ng-repeat="adj in (curve in data.curve).adjustment">
<td>{{item.point}}</td>
<td>{{curve.curveNo}}</td>
<td>{{adj.analysis}}</td>
</tr>
</tbody> |
Mais cela ne marche pas malheureusement, j'obtiens ce message d'erreur :
Citation:
Error: [$parse:syntax] Syntax Error: Token 'in' is unexpected, expecting [)] at column 8 of the expression [(curve in data.curve).adjustment] starting at [in data.curve).adjustment].
http://errors.angularjs.org/1.2.26/$parse/syntax?p0=in&p1=is%20unexpected%2C%20expecting%20%5B)%5D&p2=8&p3=(curve%20in%20data.curve).adjustment&p4=in%20data.curve).adjustment
Si quelqu'un peut m'aider s'il vous plait.
Merci.