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

Accessing querystring from the controller #28

Closed
mastermind1981 opened this issue Mar 17, 2015 · 3 comments
Closed

Accessing querystring from the controller #28

mastermind1981 opened this issue Mar 17, 2015 · 3 comments

Comments

@mastermind1981
Copy link

Hi,

I'm using the searchbox directive and i want to watch the querystring variable in my controller. The problem is that inside my controller when i make $scope.querystring is not recognized.
but when access to it through this it works !!!
so when i make my watch like that it does not work:

              $scope.$watch('querystring', function(newValues, oldValues) {
              });

Thank you.

@YousefED
Copy link
Owner

I suggest creating your own querystring variable and binding eui-query to that. You can then watch the source wherever you like!

@YousefED
Copy link
Owner

You could also watch indexVM.query but this might change in a future release

@mastermind1981
Copy link
Author

thank you i will give it a try

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