angular-filter
angular-filter copied to clipboard
Change the filter according option selected in other View?
Hi,
I want change the filtter according option selected by user in another View. Wow I can do it?
Thanks!
I already did that but in the same view here my code may be that can help someone
<div class="accordion" accordion ng-repeat="(key, value) in foo | groupBy: 'bar.'+vm.selectOpts.defaultOpt">
...
<select ng-model="vm.selectOpts.defaultOpt" ng-options="option for option in vm.selectOpts.optsName"></select>
From an another view you can may be use a broadcast of your select then you can catch it direct in the rootScope.