How to change back button text dynamically from controller.
i am using this but it will always display Go Back on each page .
$ionicConfigProvider.backButton.text('Go Back').icon('ion-chevron-left');
How to change back button text dynamically from controller.
i am using this but it will always display Go Back on each page .
$ionicConfigProvider.backButton.text('Go Back').icon('ion-chevron-left');
Iām trying to figure out a simple way to do this too. I just want to change the back text for a specific ion-view
I fixed it by using $ionicConfig inside controller.Use below code to assign text dynamically from controller
.controller("Chats",function($scope, $ionicConfig){
$ionicConfig.backButton.text("Notifications");
})
this is what i was looking for.
Thanks for Help really appreciated