Closed MurhafSousli closed 4 months ago
Is it possible to lazy load the script using import() function? I am trying to ship the polypill with my npm package library
import()
@Injectable({ providedIn: 'root' }) export class ScrollbarManager { constructor() { const polyfillScript = import('../scroll-timeline.js').then(x => { console.log(x) }); } }
I figured it out, thanks!
Is it possible to lazy load the script using
import()
function? I am trying to ship the polypill with my npm package library