title: Angular Ngoninit getting called everytime while routing
body: <p>I have one component Details where the routes for other child components is there. What is happening is that when I route to any other child component then the onint of the Details is getting called.</p>
  <p>For Example- example.com/details/123123123/profile is my current route</p>
  <p>I am navigating to example.com/details/12312331/pastappointment</p>
  <p>then the NgOnInit of Details is getting called. Which is calling all the apis that I don't want.</p>