0
如何在角度4應用程序中使用外部插件?我需要爲可滾動的div使用niceScroll插件,它由組件表示。在Angular(4)應用程序中初始化外部插件
<div class="d-flex" id="scrollable">
<app-threads-list></app-threads-list>
</div>
我打電話nicescroll初始化功能元件上的ID滾動,從組件線程列表這樣的:
$('#scrollable').niceScroll();