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

How to bind querySrv #1186

Closed
fulinlin924 opened this issue Apr 29, 2014 · 1 comment
Closed

How to bind querySrv #1186

fulinlin924 opened this issue Apr 29, 2014 · 1 comment

Comments

@fulinlin924
Copy link

I am a beginner for both the kibana and angular. I find an interesting thing there. As shown in the attached picture, the "$scope.querySrv.list[0].type" has already hold the value "lucene" at the very beginning of the "module.controller('table'" function (line 27). Suppose the break-point, that is the line 27, is executed before the "init" function. The question is why $scope.querySrv has already been bound a value in the line 27. I suppose the $scope.querySrv should be undefined in line 27. How does the $scope.querySrv got bound here?

untitled

@rashidkpc
Copy link
Contributor

Because querySrv is injected into the table controller as a dependency. The init() function has no bearing on querySrv

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

3 participants
@rashidkpc @fulinlin924 and others