how to manage the visibility of a component

cancel
Showing results for 
Search instead for 
Did you mean: 
lucastancapiano
Partner

how to manage the visibility of a component

I would like to be able to manage the visibility of a component depending on the group with which I access for example in a list item like:

<adf-sidenav-layout-navigation>
      <ng-template let-isMenuMinimized="isMenuMinimized">
             <mat-nav-list class="adf-sidenav-linklist">
                    <a mat-list-item class="adf-sidenav-link" routerLink="/conservazione">
                           <div class="sidenav-menu-label" *ngIf="!isMenuMinimized()">Conservazione</div>
                    </a>
            </mat-nav-list>
      </ng-template>
</adf-sidenav-layout-navigation>
 
I would themat-nav-list make visible only if my user is inside the group CONSERVAZIONE_GROUP.  Is it possible?