Fix to show election results without ng-init.
ng-init does not watch for autoupdates.
This commit is contained in:
parent
6a1fc01a38
commit
21e6903368
@ -224,18 +224,21 @@
|
||||
<tr>
|
||||
<td>
|
||||
<translate>Valid ballots</translate>
|
||||
<td ng-init="vote = poll.getVote('votesvalid')">
|
||||
{{ vote.value }} {{ vote.percentStr }}
|
||||
<td>
|
||||
{{ poll.getVote('votesvalid').value }}
|
||||
{{ poll.getVote('votesvalid').percentStr }}
|
||||
<tr>
|
||||
<td>
|
||||
<translate>Invalid ballots</translate>
|
||||
<td ng-init="vote = poll.getVote('votesinvalid')">
|
||||
{{ vote.value }} {{ vote.percentStr }}
|
||||
<td>
|
||||
{{ poll.getVote('votesinvalid').value }}
|
||||
{{ poll.getVote('votesinvalid').percentStr }}
|
||||
<tr class="total bg-info">
|
||||
<td>
|
||||
<translate>Casted ballots</translate>
|
||||
<td ng-init="vote = poll.getVote('votescast')">
|
||||
{{ vote.value }} {{ vote.percentStr }}
|
||||
<td>
|
||||
{{ poll.getVote('votescast').value }}
|
||||
{{ poll.getVote('votescast').percentStr }}
|
||||
</table>
|
||||
</div>
|
||||
</uib-tab>
|
||||
|
Loading…
Reference in New Issue
Block a user