An open API service indexing awesome lists of open source software.

https://github.com/momsfriendlydevco/loader

Generic page loading control in plain JS + Angular
https://github.com/momsfriendlydevco/loader

Last synced: over 1 year ago
JSON representation

Generic page loading control in plain JS + Angular

Awesome Lists containing this project

README

          

@momsfriendlydevco/loader
=========================
Generic page loading control in plain JS / Angular / Vue, designed to be as small as possible.

This module ships with an Angular wrapper (`$loader`) but can be addressed either as `$loader` (Angular) or `Loader` (vanilla JavaScript).

[Demo available here](http://momsfriendlydevco.github.io/loader)

This component was built by the really cool guys at [Moms Friendly Development Company](http://mfdc.biz).

```javascript
Loader.start('doing-something');

// Do something complicated

Loader.stop('doing-something');
```

Or mix up foreground + background loading:

```javascript
Loader.start('doing-something-foreground');
Loader.startBackground('doing-something-background');

// Do something complicated

Loader.stop('doing-something-foreground');

// Much later...

Loader.stop('doing-something-background');
```

Installation
============

Vanilla JavaScript + Core install
---------------------------------

* Install the library with `npm i --save @momsfriendlydevco/angular-ui-loader`

* Include the `dist/loader.css` and `dist/loader.js` files as high as possible within your `