I am working for the first time on a custom filter and the basic principal is working (it displays all the cd's of the artist from 7 and up). However it does not update the filter once I change the value (it keeps the same value "7" all the time. This is what I have so far:
HTML INPUT
<input type="number" value="7" id="numberOfCdsByArtist">
CONTROLLER:
$scope. = function (Artist) {
var numberOfCdsByArtist = $('#numberOfCdsByArtist')[0].value;
return Artist.numberOfCDs >= numberOfCdsByArtist ;
}
NG-REPEAT:
<div class="Artists" ng-repeat="Artist in Artists | orderBy:'Name' | filter:CDnumber">
<div>{{Artist.Name}}{{Artist.numberOfCDs}}
</div>
ng-model
– David Votrubec Jun 21 at 12:00