Reputation: 9844
I have a $scope.gemiddeldeCijfer
. Each object in this scope has two values, a cijfer
and aantalDecimalen
. I would like to use the value of aantalDecimalen
as the number in a number filter.
This is the html, as you can see the number filter now has a set value of 1
. But I would like to replace this value with the value of cijfer.aantalDecimalen
.
<li ng-repeat="cijfer in gemiddeldeCijfer">
<b>{{cijfer.cijfer | number:1}}</b> - <b>{{cijfer.aantalDecimalen}}</b>
</li>
Upvotes: 1
Views: 30