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
Post a Comment