有没有什么好的方法可以使用angular来过滤列表而不用ng-repeat?我不想首先使用javascript绘制列表,但我想使用angular来过滤它.
例:
<input type="search" ng-model="search" placeholder="Search for fruits!" />
<ul>
<li>Banana</li>
<li>Apple</li>
<li>Orange</li>
</ul>Run Code Online (Sandbox Code Playgroud)
我想使用搜索框来过滤现有的html.
(请不要给出任何关于ng-repeat或jQuery的例子)