나는 사용자가 대답해야하는 질문 목록을 가지고 있습니다. 그 때문에 양식을 준비했습니다.각도 js에서 textArea의 양방향 바인딩
HTML 양식은 사용자가 내가 코멘트 사용자가 모든 질문을 올렸습니다 받아야 양식을 제출할 때
<div class="list" ng-repeat="question in questions.data.Question" >
<div class="item item-divider">
{{question.text}}
</div>
<label class="item item-input" ng-if="question.type =='comment'">
<textarea placeholder="Comments"></textarea>
</label>
</div>
지금 내 JSON 문자열 지금
{
"sucess": true,
"message": "record(s) fetched sucessfully",
"data": {
"Question": [
{
"id": "4",
"text": "how was it?",
"type": "comment"
},
{
"id": "6",
"text": "how was it?",
"type": "comment"
}
]
}
}
입니다.
귀하의 질문은 무엇입니까? 작동하지 않는 것은 무엇입니까? 너 뭐 해봤 니? – StuR
제출 버튼을 클릭 할 때 모든 질문에 대해 사용자가 게시 한 답변을 원합니다. – Aks