0

I want the filter functionality to work just like this fiddle in the first comment below but without catching the checkboxes category from ng-repeat, I just want to write the checkboxes' value and get the filtered words as they written in the checkboxes' value in HTML.

4
  • this is the fiddle Commented Feb 11, 2017 at 8:31
  • 1
    Is this what you are looking for? jsfiddle.net/wYfs4/739 Commented Feb 11, 2017 at 8:45
  • thank you so much, I am so grateful for your help because I have been stuck in this from a week. Commented Feb 11, 2017 at 12:41
  • Glad I helped. Happy coding... Commented Feb 11, 2017 at 13:14

1 Answer 1

1

You could do this just like normal checkboxes- only catch is that the value should be properly bound using ng-model to the required controller property.

     <input type="checkbox" ng-model="ctrl.filter.red" value="red"> Red <br>
     <input type="checkbox" ng-model="ctrl.filter.white" value="white"> White <br>
     <input type="checkbox" ng-model="ctrl.filter.champagne" value="champagne">Champagne 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.