我試圖來過濾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