阅读背景:

为什么rootScope。在我的应用程序中多次调用?

来源:互联网 

In my AngularJS application, I have a controller-A and a factory. I am using the following code in factory to call the function in controller-A. In the initial call, the function in controller A's function executes 1 time; on the next call the controller-A's function executes 2 times. Hence the number of times executed get increased for each call. Is it possible to avoid this, please advise me. I have added the factory code and controller-A code below:In my AngularJS application, I have a controlle




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: