How to achieve tabs navigation manually

Hello everyone!

I am new to Ionic and I read in the docs that a tab is basically a Navigation Controller. I was wondering how could I achieve then the effects of navigation and tab persistence using custom buttons and programming the logic of the tabs.

Any idea about how to start? The documentation does not explain how the Navigation Controller works with tabs.