I'm still learning javascript and trying to get spin.js to work in a project.
Spinner works for me after a " window" command loads in app.js. But I don't understand how to make it work before a "fetch" promise in another .js module. Per your instructions I code the lines before the "fetch":
var spinner = new Spinner().spin();
target.appendChild(spinner.el);
but it tells me Spinner is undefined. I tried adding "import { Spinner } from './spin.js'" like I have in my app.js, but that didn't work either.
Thanks, spin.js is obviously a work of art.
I'm still learning javascript and trying to get spin.js to work in a project.
Spinner works for me after a " window" command loads in app.js. But I don't understand how to make it work before a "fetch" promise in another .js module. Per your instructions I code the lines before the "fetch":
var spinner = new Spinner().spin();
target.appendChild(spinner.el);
but it tells me Spinner is undefined. I tried adding "import { Spinner } from './spin.js'" like I have in my app.js, but that didn't work either.
Thanks, spin.js is obviously a work of art.