Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the filter according option selected in other View? #214

Open
ramosinfo opened this issue Aug 15, 2016 · 1 comment
Open

Change the filter according option selected in other View? #214

ramosinfo opened this issue Aug 15, 2016 · 1 comment

Comments

@ramosinfo
Copy link

Hi,

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

Thanks!

@yellooo
Copy link

yellooo commented Sep 5, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants