Top "Angular2-changedetection" questions

Angular2 zone.run() vs ChangeDetectorRef.detectChanges()

Say I have a function noificationHandler() in my service.ts that is outside of angular's context. noificationHandler() is invoked by …

javascript angular angular2-changedetection
How to fix ChangeDetectorRef import error: No provider for ChangeDetectorRef

I'm having an issue importing ChangeDetectorRef into one of my components. For reference, the family tree goes PComponent (parent) -&…

javascript angular angular2-changedetection
Why calling detectChanges() inside component doesn't update values, but wrapping code in setTimeout() does it?

I'm trying to automatically select the first value from set of options in <mat-autocomplete ...> export class ExampleComponent implements …

angular angular-material angular2-changedetection
Angular 8 value won't update on view after change

I have a small component in Angular with a method that (for now) sets a timeout and changes the value …

javascript angular angular8 angular2-changedetection angular-changedetection
"async" pipe not rendering the stream updates

Trying to render the window size on window resize through a stream in an angular 2 component utilizing an async pipe: &…

angular rxjs rxjs5 angular2-changedetection
how to disable angular2 change detection for 3rd party libraries

I have google maps which triggers 100+ times per second change detection. how to disable change detection for this. Click here …

angular angular2-changedetection
Subscribing to ActivatedRoute Params in Angular 2 does not update view templates

I'm not sure why the change detection wouldn't work here. I've tried a few things, including a setTimeout. I'm using …

javascript angular angular2-routing angular2-changedetection
Angular 2: ChangeDetection and mousemove event

I have an Angular 2 Component with many children. Because of performance issues, I wanted to check how often the ChangeDetection …

angular dom-events angular2-changedetection
Updating boolean in AfterViewInit causes "Expression has changed after it was checked"

I have a simple alert component which I'm creating dynamically in the view. Since it's created dynamically I've set an …

angular angular2-changedetection
Angular - Is binding a component method to DOM target property a wrong practice?

Say, I have a component which is used as following: <health-renderer [health]="getHealth()" [label]="label"> <health-renderer> …

angular angular2-changedetection angular2-databinding