You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NgControlGroup declares an onInit method, which schedules some work to be completed asynchronously, via PromiseWrapper.resolve.
The problem is that onInit can actually be called multiple times - it is called if change detection runs and has never completed successfully. If an exception happens during change detection after onInit is called, AbstractChangeDetector.alreadyChecked will not be set and onInit will be run again during the next tick. Since onInit in NgControlGroup schedules asynchronous work, that next tick will happen immediately, causing a crash loop.
Activity
alxhub commentedon Sep 23, 2015
It seems like
<div ng-control-group='credentials'></div>combined with theng-ifis enough to trigger the bug.alxhub commentedon Sep 29, 2015
I tracked down the root cause:
NgControlGroupdeclares anonInitmethod, which schedules some work to be completed asynchronously, viaPromiseWrapper.resolve.The problem is that
onInitcan actually be called multiple times - it is called if change detection runs and has never completed successfully. If an exception happens during change detection afteronInitis called,AbstractChangeDetector.alreadyCheckedwill not be set andonInitwill be run again during the next tick. SinceonInitinNgControlGroupschedules asynchronous work, that next tick will happen immediately, causing a crash loop.angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.