Top "Angular2-changedetection" questions

Updating value in parent component from child one causes ExpressionChangedAfterItHasBeenCheckedError in Angular

I have two component: ParentComponent > ChildComponent and a service, e.g. TitleService. ParentComponent looks like this: export class ParentComponent …

angular angular2-changedetection
Angular 4 + Jasmine Unit Tests: Reasons why fixture.detectChanges() may not work upon change of @Input() variables

Been running into this one issue and scouring the internet about fixture.detectChanges() where it does not recognize changes in @…

angular unit-testing jasmine angular2-changedetection
Angular ngDoCheck() gets called even with ChangeDetectionStrategy.OnPush

Lets say i have a component structure like this: AppComponent HeaderComponent ContentComponent TodosComponent TodoComponent If I set HeaderComponent's changeDetection to …

angular angular2-changedetection