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

Multiple calling to controller #30

Open
carlosalarconb opened this issue Aug 7, 2015 · 1 comment
Open

Multiple calling to controller #30

carlosalarconb opened this issue Aug 7, 2015 · 1 comment

Comments

@carlosalarconb
Copy link

Im not pretty sure if this is a bug or a normal behaviour ( I dont think so).
If I change html chart page to use only one call to chart Controller (removing all the call to ng-controller="ChartCtrl" first, and then adding only one call through a new

which wraps all the html code) I can see that the call is performed twice. Is this a normal behaviour? I think this could be a performance issue.

Thanks!

@carlosalarconb
Copy link
Author

The answer is very similar to this...http://stackoverflow.com/questions/15535336/combating-angularjs-executing-controller-twice
Controller is loaded by the router too, in addition all the calls that exist inside of the html file. Note it could be a performance problem.

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

1 participant