Skip to content

Can't get loader to work properly #1

@andycorm

Description

@andycorm

I tried to get this to work, but didn't have any luck =(

For starters, the sample code to include this library as a dependency doesn't seem to work

(i.e.)

angular.module('your-app-name', [
  'angular-spinner'
]);

I kept getting errors in my console until I changed the dependency name to 'angularSpinner'.

Even after doing that, despite adding:

  <div spinner="">
      <img src="https://apps.dashplatform.com/dash/share/images/ajax_loading_spinner.gif" />
    </div>

The loader shows, but won't ever go away even after the content is all loaded. Did I do something wrong? I am using the delayed angular bootstrap call,

angular.bootstrap(document.getElementById('appRoot'), ['myApp']);

not sure if this is a problem or not. It didn't stop the popular angular-loading-bar plugin from working (but I'd much rather have a spinner than a fixed bar at the top of the page.)

Any help would be great! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions