Assaf
Assaf

Reputation: 54

Ionic 2 - how to change tab name

After you create new tabs template with Ionic 2, and you want to replace one of the tab names to something else, for example settings, is there a easy/fast way to do this without changing all instances and the files names, or creating new tab and to delete the other?

Upvotes: 2

Views: 2072

Answers (1)

Love2Code
Love2Code

Reputation: 179

If you just want to change the text that appears as the tab link, then go to src/pages/tabs/tabs.html and in that file change the tabTitle to whatever text you would like to display.

For example <ion-tab [root]="tab1Root" tabTitle="Settings" tabIcon="list"></ion-tab>

Upvotes: 1

Related Questions