I am working on angular2 application where I have parent component that pops up a child component
@ViewChild(childPopupComponent) case: childPopupComponent;
What I want to do is: when pressing save button from the child component (which is popup inside the parent component), re-render the parent one for reflection to take place (instead of reloading the whole page).
I know that this re-render the current component, but how to do that from the
@ViewChild
one
this.ref.detectChanges();