0

I used perfect-scrollbar for scrolling, but when I have less items for example 2 items that don't require scrolling that stay displayed. I'm looking for a solution to hide this scroll if I don't need to scroll and more than that I don't have the elements to scroll.

please help.

        <perfect-scrollbar [config]="configScroll">
          <ul ">
            <li *ngFor="let sub of subMenuItem.submenu; let i = index">
                        <ng-template >
                          <a>
                            <div>test</div>
                          </a>
                        </ng-template>
                      </li>
                    </ul>
                  </div>
                </perfect-scrollbar>  
salma
  • 41
  • 1
  • 8

0 Answers0