tr.row(ng-repeat="i in items | filter:search"
input(type="text" ng-model="search.desc")
input(type="text" ng-model="search.comment")
這很有用,我可以通過desc和評論過濾項目。現在多角度過濾器的文字,但也大於/小於
,我還需要通過
- 量
- 日期
過濾兩者都將有一個輸入用於大於和小於(相應的/前後)。 例如,對於量:
input(type="text" ng-model="search.amount") //this one would be the minimum value input
input(type="text" ng-model="search.amount") //this one would be the maximum value input
我如何結合這與我寧願要保持工作已經說明和註釋濾波器?我想我將不得不編寫一些自定義函數 - 但是我可以結合使用現有的文本過濾嗎?關於語法
注意:在使用玉模板引擎上的NodeJS
對於你們兩個人來說,首先是因爲你讓我明白我可以鏈接過濾器。 – faboolous
很好的答案。這抓住了基本概念。 – Darryl