Ion-tabs problem


#1

Hi,

I’d like to know how to select the second tab by default.
I try the following code pen : http://codepen.io/anon/pen/cjADw?editors=101
The second tab is selected but the content is missing.

Maybe i should use the delegate-handle but i don’t understand how to use it.

Thanks for your Help


#2

A quick and easy way to change this is to change the $urlRouterProvider

http://codepen.io/mhartington/pen/iIpxF


#3

Thanks for your answer.
It’s a solution but it’s a pity to use a route provider. Ion-tabs allow to show/hide content in ion-tab, it could be nice to add a property for tab switching.

In my case i have on page1 a Ion-tabs with 2 tabs.
In page2 (whose similar to page1), i’d like to keep the tabs used by the user in page 1