Top "Angular2-changedetection" questions

How to detect when an @Input() value changes in Angular?

I have a parent component (CategoryComponent), a child component (videoListComponent) and an ApiService. I have most of this working fine …

angular angular2-changedetection
Triggering change detection manually in Angular

I'm writing an Angular component that has a property Mode(): string. I would like to be able to set this …

angular angular2-changedetection
ExpressionChangedAfterItHasBeenCheckedError Explained

Please explain to me why I keep getting this error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Obviously, I …

angular angular2-changedetection angular2-databinding
How to force a component's re-rendering in Angular 2?

How to force a component's re-rendering in Angular 2? For debug purposes working with Redux i'd like to force a component …

angular angular2-changedetection
What is the Angular equivalent to an AngularJS $watch?

In AngularJS you were able to specify watchers to observe changes in scope variables using the $watch function of the $…

angularjs angular watch angular2-changedetection
@ViewChild in *ngIf

Question What is the most elegant way to get @ViewChild after corresponding element in template was shown? Below is an …

angular angular2-changedetection viewchild
ngIf - Expression has changed after it was checked

I have a simple scenario, but just can't get it working! In my view I display some text in a …

angular angular2-changedetection
What's the difference between markForCheck() and detectChanges()

What is the difference between ChangeDetectorRef.markForCheck() and ChangeDetectorRef.detectChanges()? I only found information on SO as to the difference …

angular angular2-changedetection
Angular2 - Expression has changed after it was checked - Binding to div width with resize events

I have done some reading and investigation on this error, but not sure what the correct answer is for my …

javascript angular responsive-design angular2-changedetection
Why do I need to call detectChanges() with the default change detection strategy?

I am working on an Angular 4 app, but I am having a problem inasmuch as I am having to call …

angular typescript angular2-changedetection