Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

Any alternate to accommodate values than ng-value..?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>