Hello I am trying to import this library into my ionic project.
What I did is I copied loading-bar.js and CSSinto my assets folder.Then I added those 2 lines to index.html:
I added this line to ts file of the page that i want to use the library
import * as loading from '../assets/loading-bar';
I added this to html file of page:
Then with this code I tried it:
var bar1 = new ldBar("#myItem1"); var bar2 = document.getElementById('myItem1').ldBar; bar1.set(60);
This is the error: