Why is ngOnInit called twice?

Why it is called twice Right now, if an error happens during detecting changes of content/view children of a component, ngOnInit will be called twice (seen in DynamicChangeDetector). This can lead to follow up errors that hide the original error. This information comes from this github issue So it seems that your mistake might have … Read more