angularjs tree directive with filter -


good day. made tree directive filter. want see tree-node if name or child name contains word. so, works when filter data in controller:

$scope.data1 = $filter('treename')($scope.data, $scope.name); <tree model="data1"/> 

but when add filter | treename: name in model expression

<tree model="data | treename: name"/> 

angular cause lot of exceptions on interaction

error: [$rootscope:infdig] http://errors.angularjs.org/1.3.15/$rootscope/infdig?p0=10&p1=%5b%5b%7b%22m…r%20e%3da(c%2cd)%3breturn%20b(e%2cc%2cd)%7d%22%2c%22newval%22%3a1%7d%5d%5d 

also setselected never called. doing wrong?

http://plnkr.co/edit/6boren9tht5bezmkfys9?p=preview


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -