我试图来过滤angularjs搜索结果和我得到这个错误我的铬控制台上:错误:[NG:AREQ]AngularJS Filteriing搜索结果:错误:[NG:AREQ]
这是我的代码片断
<div id="notebooks" ng-controller="NotebookListCtrl">
<input type="text" id="query" ng-model="query"/>
<select ng-model="orderList">
<option value="name">By name</option>
<option value="-age">Newest</option>
<option value="age">Oldest</option>
</select>
<ul id="notebook_ul">
<li ng-repeat="notebook in notebooks | filter:query | orderBy: orderList">
name: {{notebook.name}}<br/>
procesor: {{notebook.procesor}}<br/>
<div class="right top">{{notebook.age}}</div>
</li>
</ul>
<span>Number of notebooks: {{notebooks.length}}</span>
</div>
这是我做了 http://plnkr.co/edit/P1DFr3fEuWiYGfC0k7bj?p=preview
一切似乎都不错,但我不知道为什么我收到上述错误普拉克。
@JnG,。是的,你可以,但你的重复。当然可以使用'ng-src'指令,它为视图中的img标签提供图像的路径。 –
请upvote我的问题。谢谢 – Blaze