Gathering detailed insights and metrics for angular-busy
Gathering detailed insights and metrics for angular-busy
Gathering detailed insights and metrics for angular-busy
Gathering detailed insights and metrics for angular-busy
@cgross/angular-busy
> Show busy/loading indicators on any $http or $resource request, or on any promise.
angular-busy2
Angular Busy 2
angular2-busy
Angular 2 Busy: show busy/loading indicators on any promise
@syncfusion/ej2-angular-popups
A package of Essential JS 2 popup components such as Dialog and Tooltip that is used to display information or messages in separate pop-ups. for Angular
Show busy/loading indicators on any element during $http requests (or any promise).
npm install angular-busy
Typescript
Module System
Node Version
NPM Version
83.5
Supply Chain
99.6
Quality
77.7
Maintenance
100
Vulnerability
100
License
CSS (50.99%)
JavaScript (26.56%)
HTML (22.45%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,432 Stars
62 Commits
255 Forks
43 Watchers
2 Branches
7 Contributors
Updated on May 15, 2025
Latest Version
4.1.4
Package Id
angular-busy@4.1.4
Size
688.34 kB
NPM Version
3.10.8
Node Version
4.4.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Show busy/loading indicators on any $http or $resource request, or on any promise.
Install with Bower, npm, yarn, or download the files directly from the dist folder in the repo.
1bower install angular-busy --save 2npm install @cgross/angular-busy
Add dist/angular-busy.js
and dist/angular-busy.css
to your index.html.
Add cgBusy
as a module dependency for your module.
1angular.module('your_app', ['cgBusy']);
Add your promise to $scope and reference that in the cg-busy
directive:
1function MyCtrl($scope,$http,User) { 2 3 //using $http 4 $scope.myPromise = $http.get('...'); 5 6 //if you have a User class based on $resource 7 $scope.myPromise = User.$save(); 8 9}
1<!-- Use the simple syntax --> 2<div cg-busy="myPromise"></div> 3 4<!-- Use the advanced syntax --> 5<div cg-busy="{promise:myPromise,message:'Loading Your Data',templateUrl:'mycustomtemplate.html'}"></div>
The cg-busy
directive expects either a promise or a configuration object.
In other words. You may do this:
1<div cg-busy="myPromise"></div>
or this:
1<div cg-busy="{promise:myPromise,message:'Loading',backdrop:false,templateUrl:'myAwesomeTemplate.html',delay:300,minDuration:700}"></div>
promise
- Required. The promise (or array of promises) that will cause the busy indicator to show.message
- Optional. Defaults to 'Please Wait...'. The message to show in the indicator. This value may be updated while the promise is active. The indicator will reflect the updated values as they're changed.backdrop
- Optional. Boolean, default is true. If true a faded backdrop will be shown behind the progress indicator.templateUrl
- Optional. If provided, the given template will be shown in place of the default progress indicatory template.delay
- Optional. The amount of time to wait until showing the indicator. Defaults to 0. Specified in milliseconds.minDuration
- Optional. The amount of time to keep the indicator showing even if the promise was resolved quicker. Defaults to 0. Specified in milliseconds.wrapperClass
- Optional. The name(s) of the CSS classes to be applied to the wrapper element of the busy sign/animation. Defaults to cg-busy cg-busy-animation
. Typically only useful if you wish to apply different positioning to the animation.The angular-busy indicator is a regular Angular template. The templates have access to the scope where cg-busy
was declared so you may reference your local scope variables in your custom templates. Additionally, the scope is augmented with a $message
field containing the indicator message text.
The defaut values for message
, backdrop
, templateUrl
, delay
, and minDuration
may all be overriden by overriding the $injector
value for cgBusyDefaults
, like so:
1angular.module('your_app').value('cgBusyDefaults',{ 2 message:'Loading Stuff', 3 backdrop: false, 4 templateUrl: 'my_custom_template.html', 5 delay: 300, 6 minDuration: 700, 7 wrapperClass: 'my-class my-class2' 8});
Only the values you'd like overriden need to be specified.
delay
and minDuration
work together. If specified together, minDuration
will only take effect if the promise was active through the delay. For example, if delay
=200 and minDuration
=500 and the actual promise only took 100ms, no indicator will be shown. If the delay threshold is reached, the indicator will show for minDuration
ms rather than minDuration
minus delay
as it had been before.cgBusyDefaults
value.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 6/26 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More