Reputation: 51
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>
Upvotes: 0
Views: 1471