0

Hi I want hide some links in side menu in ionic frame work. Like some users dont have permission to access some links. So I want to hide some links in my side menu for some users.

1 Answer 1

0

Check the ng-if directive.

https://docs.angularjs.org/api/ng/directive/ngIf

Just set a variable in your $scope or $rootScope, and apply the ng-if in your html code like this.

<ion-item ng-if="show === 1">
 </ion-item>

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.