Angular 2 runOutsideAngular still change the UI

If anything is causing change detection, and a bound event like (click)="onClick()" does cause change detection, then Angular will detect the change.

runOutsideAngular doesn’t mean Angular won’t see the change, it only means that the code run this way doesn’t cause change detection, but because the click event already does, it’s meaningless in your example.

Leave a Comment