angular-filter icon indicating copy to clipboard operation
angular-filter copied to clipboard

Change the filter according option selected in other View?

Open ramosinfo opened this issue 9 years ago • 1 comments

Hi,

I want change the filtter according option selected by user in another View. Wow I can do it?

Thanks!

ramosinfo avatar Aug 15 '16 17:08 ramosinfo

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.

yellooo avatar Sep 05 '16 10:09 yellooo