Using function with ng-repeat causing infinite digest loop
问题 I have the following piece of code. https://plnkr.co/edit/Tt7sWW06GG08tdJu72Fg?p=preview. Please expand the window fully to see the whole view. I have categories and sub-categories to display in a navbar as shown in the above plunkr. Each category has services/sub-categories to display. I am using 2 nested ng-repeats and the inner one is using the value from the parent iteration of ng-repeat . I have attached a function getServicesByCategory to the inner ng-repeat that calls