I am looking to disable the selected item menu when it is clicked until there is no response. I am curious if there is a universal way to achieve this.
For example:
<ng-template [ngIf]="item.hasSidebar">
<li [hidden]="itemHidden(item.keyPage) || !item.visible" class="nav-item">
<a class="nav-link" (click)="reloadSidebar(item)" style="cursor: pointer">
<i class="nav-icon {{item.icon}}"></i> {{item.name | translate}} <i class="nav-change-sidebar fa fa-angle-right"></i>
<span *ngIf="item.badge" [ngClass]="'badge badge-' + item.badge.variant">{{ item.badge.text }}</span>
</a>
</li>
</ng-template>
The responses from each service are contained within the components, making it difficult for me to view them from the menu component itself.