嘿我有问题我将在我的控制器中使用我的长度数组滤波器,长度值在html视图中可见但我将在控制器中使用此值
<div ui-tree id="tree-root">
<ol ui-tree-nodes ng-model="product.versions.tree" >
<li ng-repeat="node in (test=(product.versions.tree | filter:search.query))" ui-tree-node collapsed='collpsed' ng-include="'nodes_renderer.html'" ></li>
<p>{{test.length}}</p>
</ol>