ionic tabscontroller make not-first active on startup -


when start ionic application tabbar on bottom, starts app first tab active.

but have 3 tabs, , want tab in middle active tab starts when open app.

can't find in docs how this. someone?

there $ionictabsdelegate needs. can inject controller, or app's run block. similar example:

function myctrl($scope, $ionictabsdelegate) {   //use 1 select second tab (starts 0)   $ionictabsdelegate.select(1); } 

if want have when app starts, put in in run block


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -