I m initializing my template using ng-init. On ng-init, I m calling a function XXX() inside a controller. XXX() gets called more than once. XXX() requests for data from service which is also requested more than once. As a result of this, I m displaying redundant data in my template.
I have not assigned the controller in the template using ng-controller. I have assigned the controller to the template only in the Route definition like this
How to combat this issue @leob ? I just need to request the service only once…