title: Handling unnecessary API calls in Angular 1
body: <p>I have a set of information to be displayed as per the role. I have used ng-show to show the relevant info(fetched from an API ) to the respective role, i want to restrict the calls to API which are not necessary for the role.I have tried an if condition but that's not helping. Can someone enlighten me ?</p>