angular1 中如何根據輸入的menuFilter值,來篩選menu.name和menuFilter值相等的項目
<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>