sb-admin-angular
sb-admin-angular copied to clipboard
Multiple calling to controller
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!
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.