hi,
Recently,I come across the well known error:
Error: [$rootScope:inprog] $digest already in progress'
With some source reading,It seems that,$rootScope.$$phase is the direct cause.
$$phase can be found at every Scope object,but only referenced/accessed by $rootScope.
So,I wonder why this singular property be presented in every Scope object but not private to $rootScope?
If $$phase is set in per-scope way,not stick to $rootScope,in my case the error mentioned above can be avoid.
although,it do can be `avoid` in some other way.
but,what I asking,is not how to avoid it,but why $$phase designed this way(not private to $rootScope)?