我有输入字段:如何在Angular JS中使用两个过滤器?
<input type="text" ng-model="in">
还可以选择列表:
<select ng-model="sel"></select>
我怎么能在ng-repeat
像使用两个过滤器:
ng-repeat="item in arr | filter:sel | filter:in"
我的选择列表中的标头:
<div ng-controller="TestController">
<select ng-controller="in"></select>
</div>
此外,在页面底部,我有:
<div ng-controller="TestController">{{in}}</div>
但{{in}}
是空
您使用的是正确的。你可以在出错的地方分享你的代码吗? – Vineet
您是否有价值财产
@ Kaffarov,你是否在下面检查我的答案? – immirza