-
Notifications
You must be signed in to change notification settings - Fork 0
/
ultra.html
32 lines (27 loc) · 1019 Bytes
/
ultra.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<ion-view view-title="Cognition Ultra super">
<ion-content style="background-image: url('https://i.pinimg.com/736x/57/6f/11/576f11a3cab7ac5d0354fee75bcb28a3--sherwin-williams-paint-light-french-gray-sherwin-williams-pottery-barn-colors.jpg');">
<div >
<div ng-controller='ultraCtrl as qCtrl'>
<div ng-repeat='question in qCtrl.questions'>
<p>{{ question.title }}</p>
<div ng-repeat='answer in question.answers'>
<input type='radio' name='{{question.title}}' ng-model='qCtrl.selectedAnswers[question.title]' ng-value='answer'>{{ answer.title }}
</div>
<hr>
</div>
<br>
<center>
<p ng-if='qCtrl.totalQuestions'>
{{ qCtrl.correctAnswers }}/{{ qCtrl.totalQuestions }} were correct
</p>
</center>
<button class="button button-block button-positive" ng-click='qCtrl.validate()'>
Validate answers
</button>
<p ng-if='qCtrl.totalQuestions'>
{{ qCtrl.correctAnswers }}/{{ qCtrl.totalQuestions }} were correct
</p>
</div>
</div>
</ion-content>
</ion-view>