Giter Site home page Giter Site logo

adonespitogo / angular-loading-spinner Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 23.0 11 KB

Angular directive for ajax loading indicator. It detects any ajax request and shows the spinner. This directive makes use of https://github.com/urish/angular-spinner.

PHP 1.88% JavaScript 18.60% HTML 79.52%

angular-loading-spinner's People

Contributors

adonespitogo avatar louadrien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-loading-spinner's Issues

Ability to control spinner

Granted the main intent of this directive is to automatically call the angular-spinner directive on Ajax requests, but an even interesting use could be that -

The angular-spinner directive gives us a way to control the display (show/hide) of the spinner through a scope variable, which is available through the spinner-on attribute.

You can direct the spinner to start and stop based on a scope expression, for example:

<span us-spinner="{radius:30, width:8, length: 16}" spinner-on="showSpinner"></span>

It would be nice if I could still control the spinner explicitly, whilst the directive works as it is when showing the loader during an Ajax request.
I want to be able to control the spinner on some of my directives that just take time to render their data (No Ajax call involved while rendering :))

Thanks!

Hide elements until loaded

I'm trying to use angular-loading-spinner as a replacement for ng-cloak I want to hide my form until the data is loaded, but display a spinner until that point.

Right now I'm doing
`

` This results in three loading stages: 1) before ajax begins: I see {{angular data}} on the page 2) Ajax begins, result not back yet: form hidden, spinner shown 3) ajax finished: complete form shown, spinner hidden.

What I want is

  1. form hidden, spinner shown
  2. "
  3. spinner hidden form shown

How can I achieve that?

Thanks for the great directive!

Tag a release

I am trying to push a build to webjar. It apparently requires you to have Tagged the release in git as well.

Thanks for this great project.

Need a repo tag for 0.0.2 to support bower

I tried to reference 0.0.2 in bower.json, but it only found 0.0.1.

bower install
bower not-cached git://github.com/adonespitogo/angular-loading-spinner.git#~0.0.2
bower resolve git://github.com/adonespitogo/angular-loading-spinner.git#~0.0.2
bower ENORESTARGET No tag found that was able to satisfy ~0.0.2

Additional error details:
Available versions: 0.0.1

I think you need to create a git tag for 0.0.2 to support bower finding the particular versions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.