<!doctype html>
<html ng-app="tutorialApp">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<title>Real-o-Mat</title>
</head>
<body>
<div ng-controller="mainCtrl">
<h1>Ergebnis: {{ result }}</h1>
<div ng-repeat="question in unansweredQuestions">
<h3>{{ question }}</h3>
<p>
<label for="yes_{{$index}}">Ja</label>
<input type="radio" id="yes_{{$index}}" name="question_{{$index}}" value="yes" ng-model="answer[$index]" ng-change="updateAnswer($index)" />
</p>
<p>
<label for="no_{{$index}}">Nein</label>
<input type="radio" id="no_{{$index}}" name="question_{{$index}}" value="no" ng-model="answer[$index]" ng-change="updateAnswer($index)" />
</p>
<p>
<label for="abst_{{$index}}">Egal</label>
<input type="radio" id="abst_{{$index}}" name="question_{{$index}}" value="abst" ng-model="answer[$index]" ng-change="updateAnswer($index)" />
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
<script src="app.js"></script>
<script src="controllers/mainCtrl.js"></script>
</body>
</html>