'Angular 10: disable perfect-scrollbar if not have more item to scrolling
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>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
