@n0s13 wrote:
I have code like below.
<ul> <li ng-repeat="quest in Questions"> {{quest.question}} <div ng-repeat="choice in quest.jawaban" ng-init="answer[quest.no]=quest.selected"> <input type="radio" ng-model="answer[quest.no]" ng-value="'{{choice.pil}}'" name="{{quest.no}}"> {{choice.jawaban}} </div> <br> </li> </ul>
i need more value on ng-value like ng-value="'{{choice.pil}}~{{choice.jawaban}}~etc'", because i need to deliver to my API for save data if user click "next" button.
example on
http://play.ionic.io/app/6d698853ef09
its running good, radio button default value checked prefect, but only one variable. I need more like '{{choice.pil}}~{{choice.jawaban}}~{{bla}}~{{bla}}' on ng-value.thank you
Posts: 1
Participants: 1