Some function get called multiple times from the controller

198 views
Skip to first unread message

alessand...@hotmail.it

unread,
Nov 1, 2017, 5:27:53 AM11/1/17
to Angular and AngularJS discussion
I really don't understand why some of my function get called more than once time in angular... it is not a problem of loops or something like that, it seams like if i declared the same controller more than once on a single component.
I can't post any code there, I only want to know if anyone had the same issue. I think that could be aproblem of the ng-Include which I use a lot in the code.Tell me if anyone know how to solve this ! Thank to everyone.

Sander Elias

unread,
Nov 1, 2017, 8:26:57 AM11/1/17
to Angular and AngularJS discussion
Hi Alessandro,

it seams like if i declared the same controller more than once on a single component.

Probably that is the issue. Most common cause, define the controller on both the route, and then again in the view
 
Regards
Sander
Reply all
Reply to author
Forward
0 new messages