How to Get the value of radio button and store it , then show it ?
<div class="card">
<div class="item item-image">
<img src="img/Game-Img/Debug-img/level-1/{{question}}.png" id="question">
</div>
</div>
<ul id="options">
<li ng-repeat="option in options">
<label class="item item-radio">
<input type="radio" name="answer" value="{{option}}" required>
<div class="item-content" >
<center><strong>{{option}}</strong></center>
</div>
<i class="radio-icon ion-checkmark"></i>
</label>
</li>
</ul>
<br>
<center>
<button ng-click="checkAnswer()" class="button button-block button-stable" ng-show="answerMode">Submit Answer</button>
</center>
</div>
</div>
</div>
.factory('questionFactory', function() {
var questions = [
{
question: "Q1",
options: ["object", "main", "class", "case"],
answer: "class"
},
{
question: "Q2",
options: ["println", "printf", "printline", "print"],
answer: "println"
},
{
question: "Q3",
options: ["void", "void main", "static void", "static"],
answer: "void"
},
{
question: "Q4",
options: ["println", "out", "system", "string"],
answer: "out"
},