Some components like titles, tabs behave according to the platform they are built for. For example, on iOS the default display of view title is at the center and to the left in android devices.
This might look like a minor thing at the beginning of app development, but when we want to place some icons in the header(maybe for branding purpose) we might like to place the view title to right or to the center.
To have consistent looks across platforms we can ‘hard set’ the view title location by setting the navBar.alignTitle function of $ionicConfigProvider.
$ionicConfigProvider.navBar.alignTitle() takes 3 values
Quick fix to change position of each view:
< ion-view> < ion-nav-title> <center>Technotip</center> < /ion-nav-title> < ion-content> < /ion-content> < /ion-view>
As shown above, you could make use of our good old HTML friend center tag to align the nav title to center! or take some time to play with CSS to achieve the same.