Tabs as child view



I want to create an application in ionic 1 with master-detail page where the master is a list of items and the details view is broken into different tabs, but I’m a bit lost with the states. Can you show me a link or codepen where this issue is showed??
Thank you very much