angularjs - Bind function result to angular repeat -
I have an example of a service in my In the template: It is easy, thus I can directly point to the methods of service without folded wrap to No, there should be no real display effect. Due to data-binding, most resources of repetition are required. But data binding is also done when you use the array directly, no matter whether it is included directly or returned by the function or not. Only overhead function should be the call and the return of the array, but it is negligible. However, I would advise the controller to force the service, this is bad behavior. Let's say that you are using the service function multiple times in the template, and then you decide to rename the function - you have to change it even once in the appropriate cover function. At the same time, you have been exposed to automatically template to all service functions, although you may need a subset (ie if you have called in an initialization function that controller if you do not want it most likely That it should be called anywhere in the template.). $ scope and its result is through In the Walking Controller
$ scope.svc = MyService;
find time is detected call, each
$ scope The change was triggered 2 times it may not be too much but that
ng- Repeat Is there any strange damage to this kind of use?
Comments
Post a Comment