angular-loading-overlay
v1.1.1
Published
Service and directive to manipulate overlays on async operations.
Downloads
3,959
Readme
Angular loading overlay
The module provides your app with overlays (like "Loading...") that could be shown on async operations.
It supports multiple independent named overlays on one page.
It also allows you to create preconfigured handlers and wrap promises to show and hide overlays on promise work started and finished.
The module has integration with Spin.js via angular-loading-overlay-spinjs.
See Docs & Examples for more information.
Should you have any questions, feel free to contact me on Gitter
Docs & Examples
Installation
bower install --save angular-loading-overlay
ornpm install --save angular-loading-overlay
Usage
In javascript
angular.module("your nodule name", [
"bsLoadingOverlay"
]);
angular.module("your nodule name")
.controller(function ($timeout, bsLoadingOverlayService) {
bsLoadingOverlayService.start();
$timeout(bsLoadingOverlayService.stop, 5000);
});
In html
<div bs-loading-overlay>
loaded data usage here
</div>
License
Copyright (c) 2016 Oleksandr Beshchuk <[email protected]>
Licensed under the Apache License.
Contributing
- Fork the repo
npm install
npm run prepare-development
npm run test:watch
- Make your changes, add your tests
npm run build
- Stage source and dist folders
- Commit, push, PR.