I’m trying to add a header button only on specific view on Side Menu ionic template, like share button on posts view or additional popover menus on other views for exemple. Like the picture below shows it :
I’ve tried to use
$rootScope to do that by change the value of
$rootScope in the view controller when it’s loaded, but I’ve read that the navigation header seems to had a particular
$scope who does not refresh (am I right ?) so it didn’t work.
I’ve already checked https://forum.ionicframework.com/c/ionic-v1 and https://ionicframework.com/docs/v1/api/directive/ionNavButtons/ but I don’t understand how to condition the display of the differents nav buttons.
Is that possible ?
Thanks and have a nice day !