Get to get all child scopes in Angularjs given the parent scope
I would like to know how to get a list of all child scopes given a parent scope. All I can find from the properties of the scope are $$childHead, $$childTail, $$nextSibling and $$prevSibling. The approach I'm using now is to get the childHead from the parent and then using the nextSibling to get the next child until nextSibling is null. Is there a better approach? Given that I want to call a method [getModel] on all the children, is there again a better way of doing this? Mark Rajcok The child directives are using isolated scopes and at such have their own values which are not visible from the