How do I change the default homescreen on the example tabs based interface project?


#1

I have setup a tabs based interface using

ionic start myApp tabs

In this, there are 3 tabs - Dashboard, Friends, and Account. Dashboard is the first (default screen).

I want to set Friends as the default screen/tab, because i need my homescreen to be a list (as is the case in the example project). How do I change the default homescreen on this example tabs based interface project.


#2

Navigate to js/app.js file , then locate the statement

urlRouterProvider.otherwise('/tab/dash');

and replace it with :smile:

urlRouterProvider.otherwise('/tab/friends');