How to force a component’s re-rendering in Angular 2? For debug purposes working with Redux i’d like to force a component to re-render it’s view, is that possible? 6...
In AngularJS you were able to specify watchers to observe changes in scope variables using the $watch function of the $scope. What is the equivalent of watching for variable...
What is the difference between ChangeDetectorRef.markForCheck() and ChangeDetectorRef.detectChanges()? I only found information on SO as to the difference between NgZone.run(), but not between these two functions. For answers with...
Question What is the most elegant way to get @ViewChild after corresponding element in template was shown? Below is an example. Also Plunker available. Component.template.html: <div id="layout" *ngIf="display"> <div...
I’m writing an Angular component that has a property Mode(): string. I would like to be able to set this property programmatically not in response to any event. The...
Please explain to me why I keep getting this error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Obviously, I only get it in dev mode, it doesn’t happen...
I have a parent component (CategoryComponent), a child component (videoListComponent) and an ApiService. I have most of this working fine i.e. each component can access the json api and...