Scenario : I have two components Parent and Child. Both components have some API calls being done in ngOnInit. Child component has ngOnChanges lifecycle hook.
On page load based on certain conditions I'm triggering child's ngOnChanges from Parent component by changing the @Input parameter being passed to Child.
Issue : Child component's ngOnChanges is being triggered from Parent component before the Child component's ngOnInit is completed.
How to avoid this ??