So I want to create a table something similar to this
with this data
$scope.data = [
{question : 1, answer : a},
{question : 1, answer : b},
{question : 1, answer : c},
{question : 2, answer : b},
{question : 2, answer : a},
{question : 3, answer : c},
]
So far this is what i have
<tbody ng-repeat="(key,value) in data" ng-init="current=null">
<tr>
<td><span ng-if="current != value.question">{{value.question}}</span></td>
<td>{{value.answer}}</td>
<td class="hidden">{{ current = value.question }}</td>
</tr>
</tbody>
would be glad if you could help and enlighten me thank you!
