I m trying to call a function in webpacked library (bundle.js) from an angular component. I used this anwer to bundle my library and was able to call the function from an index.html file using the code from the answer. I also included the bundled js library in my angular project and now i would like to call it from somewhere in angular, like from a component.
So far i tried to declare my library in an angular component like this
declare const the_library: any;
then use it from somewhere in component like this
the_library.method1();
but i m getting error : ERROR ReferenceErro the_library is not defined