sb-admin-angular icon indicating copy to clipboard operation
sb-admin-angular copied to clipboard

Multiple calling to controller

Open carlosalarconb opened this issue 9 years ago • 1 comments

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 avatar Aug 07 '15 16:08 carlosalarconb

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.

carlosalarconb avatar Aug 07 '15 18:08 carlosalarconb