bug: $ionicConfig setting back button text is not applied globally
Type: bug
Platform: all
Platform Versions: all
Using $ionicConfigProvider I can set the Back button text to a custom string and this takes effect globally on every screen:
$ionicConfigProvider.platform.ios.backButton.previousTitleText(false).text(backText).icon('ion-ios-arrow-back');
However if the user later changes their language, $ionicConfigProvider can no longer be used since it is broken when accessed from within a controller. Instead I have used $ionicConfig like this:
$ionicConfig.platform.ios.backButton.previousTitleText(false).text(backText).icon('ion-ios-arrow-back');
This will change the back text on the current screen, but all other screens will still have the old text. I would like changes to $ionicConfig to take places globally like they do for $ionicConfigProvider. Or just fix $ionicConfigProvider so it can be used from a controller.
http://codepen.io/anon/pen/ogKaLq
- Click "Scientific Facts". Note the Back text is "Backk".
- Click Change Language. The Back text should be "Retour".
- Click "Scientific Facts". Note the Back text is not "Retour".
duplicate of #3281