ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: $ionicConfig setting back button text is not applied globally

Open rsweny opened this issue 11 years ago • 2 comments

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.

rsweny avatar Apr 15 '15 13:04 rsweny

http://codepen.io/anon/pen/ogKaLq

  1. Click "Scientific Facts". Note the Back text is "Backk".
  2. Click Change Language. The Back text should be "Retour".
  3. Click "Scientific Facts". Note the Back text is not "Retour".

rsweny avatar Apr 15 '15 21:04 rsweny

duplicate of #3281

rsweny avatar Apr 15 '15 21:04 rsweny