-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: $ionicConfig Setting Backbutton Icon Does Not Work #3281
Comments
So you ned to use this inside a run function, not a controller. ..run(function($ionicConfig){
$ionicConfig.backButton.icon('ion-ios-home');
})
|
@mhartington This bit of the documentation suggests it could be anywhere:
"within the app itself" really lends it to seem "in a controller", right? If so, then perhaps that should be edited out? So, is it not possible to change the back button icon after the app is initialized? |
@mhartington Here's an example of this NOT working in http://codepen.io/calendee/pen/qEJKrX Notice in every It seems to me, Am I missing something obvious here or can you re-open this? |
Cool, will pass this along to @adamdbradley |
Great. FYI : As noted originally, when used in a controller, the same behavior occurs. When you assign an icon and then ask config what is assigned - it answers correctly but the view is wrong. So, I feel like $ionicConfig WOULD work in a controller if the underlying issue is resolved. |
Type: bug
Platform: all
The documentation indicates that
$ionicConfig.backButton.icon('ion-ios-home')
should be able to change the back button icon inside app controllers.However, this does not work. However, when requesting the current back button icon with
$ionicConfig.backButton.icon()
, it answers with the correct back button even though the REAL back button in the nav-bar has not changed.Sample Code Pen : http://codepen.io/calendee/pen/wBYamw
The text was updated successfully, but these errors were encountered: