How to refresh when a segment button is clicked?

I am new with Ionic development. I am trying to build a page with segment buttons. When I click on each segment button, I am trying to use ngSwitch to show a part of the page as described in the documentation but that does not seem to work.

It seems to work when i reload the same page I am on with the new value of the segment button. But the history is being distorted as I am pushing in the navCtrl. Can you help?

Use the Official documentation of ionic segment creation and usage.
Segment with switchcase