javascript - angularjs filter usage problem
学习ing
学习ing 2017-07-04 13:45:02
0
1
1509

How to filter items with equal menu.name and menuFilter values ​​based on the input menuFilter value in angular1

    <input type="text" ng-model="menuFilter"
                     placeholder="搜索"/>
    <p ng-repeat="menu in menuList |filter:menuFilter track by $index">
      <span>{{menu.name}}</span>
      <span>{{menu.id}}</span>
    </p>
学习ing
学习ing

reply all(1)
typecho

filter:{name : menuFilter}

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template