Ion-nav-buttons side conditionally?


#1

i want to set the ion-nav-buttons side based on language …
something like :

 <ion-nav-buttons side="{{lang === 'ar' ? 'right' : 'left'}}">
    <button class="button button-dark no-animation" ng-click="startApp()" ng-if="!slideIndex">
        {{"SKIP" | translate}}
    </button>
    <button class="button button-dark no-animation" ng-click="previous()" ng-if="slideIndex > 0">
        {{"PREVIOUS" | translate}}
    </button>
</ion-nav-buttons>

<ion-nav-buttons side="{{lang === 'ar' ? 'left' : 'right'}}">
    <button class="button button-dark no-animation" ng-click="next()" ng-if="slideIndex != 2">
        {{"NEXT" | translate}}
    </button>
</ion-nav-buttons>

can you please guide me with live example ??

Thank you


#2

i want to do same thing but side param not working with scope

please help us :slight_smile:

thanks for this awesome framework