What function is called when I click tab in lifecycle

I’ve got Ionic tabs on the bottom of the screen which provides navigation between two screens. Is there any function like ngOnInit() which is called when I click on the tab button? I would like to refresh some elements.