htmlangularjsmeanjs

How to filter ng-repeat values based on another input ng-model value in angularjs?


repeat values based on another input ng-model value in angularjs?

Expecting result is:-


Solution

  • You can try following to filter items by category property only

      <div ng-repeat="question in questions | filter:{ category: kpcategory }">
          <ul>
              <li><span>{{question.category}} , {{question.name}}</span></li>
          </ul>     
      </div>
    

    Demo