Hi Олег,
According trough the docs and the code, de scope function should do it’s
own recursion.
Can you provide a plunk with the issue you are experience?
Oh, this is the entire .scope() function out of the angular source:
function(element) {
// Can't use jqLiteData here directly so we stay compatible with jQuery!
return jqLite(element).data('$scope') ||
jqLiteInheritedData(element.parentNode || element, ['$isolateScope', '$scope']);
}
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.