I am a beginner with AngularJS and Im facing the following problem:
I have a screen with a side-nav that every link is managed by AngularJS' router. The point is that some options from the side-nav as well as some content will be only displayed to some special kind of users, lets called them Admins.
I want to use something like:
<ng-if="isAdmin == true">
....
</ng-if>
so the question is how I set isAdmin variable with a value that is coming from the request?