sticksy
sticksy copied to clipboard
How can I import sticksy lib in Angular aplication
Hi,
sticksy lib in not exported as ES6 module, so how can I use it in eg. Angular app? For example
import Sticksy from 'sticksy';
in component ts file does not work (sticksy is not ES6 module)
As we can see in source code, you have to use window.Sticksy.
So you can do
import 'sticksy';
// then...
new window.Sticksy('.js-element');