我有我的對象的對象,但NG重複數據沒有顯示我什麼我的數據是JSON格式,如:NG重複不使用對象的對象工作
{
"0": [
{
"question": "How often is real property re-assessed (or revalued)?",
"id": 1,
"section": "Assessment",
"sectionId": 2,
"check": true,
"index": 0
},
{
"question": "How often is real property re-assessed (or revalued)?",
"id": 1,
"section": "Assessment",
"sectionId": 2,
"check": true,
"index": 0
},
{
"key": "Survey Meta Data"
}
],
"1": [
{
"question": "When are New Assessment Notices sent out?",
"id": 2,
"section": "Assessment",
"sectionId": 2,
"check": true,
"index": 1
},
{
"key": "Assessment"
}
]
}
,我想展示所有的問題,關鍵我怎麼能做到這一點我想是這樣的:
<div class="form-group" ng-repeat="data in viewQuestions">
<div ng-repeat="values[$index] in data ">
<label for="comment">{{values.questions}}</label>
</div>
<label for="comment">{{data.key}}</label>
<textarea class="form-control" rows="2" id="comment"></textarea>
</div>
你如何看待輸出? – Sajeetharan
我想先查看問題,然後輸入如下內容: –
問題:房地產重估(或重估)的頻率如何? 問題:「房地產重估(或重估)的頻率如何? 關鍵:調查元數據 問題:何時發出新評估通知 關鍵:評估 –