M
M
Max2015-09-12 20:43:17
Angular
Max, 2015-09-12 20:43:17

Why is filtering by checkbox not working in angular?

Hello, tell me why the filter in angular does not work please.
The checkbox itself is

Моторола: <input type="checkbox" ng-model="Motorola" ng-true-value='Motorola' ng-false-value=''> <br />

Output of the phones themselves
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 phone" ng-repeat="phone in phones | filter:filter | filter:Dell | filter:Motorola">
        <img ng-src="{{phone.imageUrl}}" alt="{{phone.name}}">
        <h1>{{phone.name}}</h1>
        <p>{{phone.snippet}}</p>
        <strong>{{phone.price}} $</strong>
      </div>

I posted a little more extended code here jsfiddle.net/nujb85c6/#

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question