Skip to content

Invoking spinner before a "promise" not working #392

@slferris

Description

@slferris

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions