Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
angular-progress
Advanced tools
entertaiment while loading your data
Download the package from GitHub.
git clone https://github.com/codekraft-studio/angular-progress.git
Or use it from the GitHub CDN:
<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/codekraft-studio/angular-progress/master/dist/angular-progress.css"/>
<script type="text/javascript" src="https://cdn.rawgit.com/codekraft-studio/angular-progress/master/dist/angular-progress.min.js"></script>
Add angular-progress to your module dependencies:
angular.module('app', ['angular-progress'])
And finally and optionally add the directive to your DOM:
<progress-bar></progress-bar>
The module has a interceptor that start automatically the progress bar when a $http request is performed. If you want to disable the progress bar on a particular request, you have to specify the property ignoreProgress like in this example:
$http.({
method: 'GET',
url: 'api/feeds',
ignoreProgress: true
}).success(function(data) {
// do stuff
})
or in the short form like this:
$http.get('api/feeds', { ignoreProgress: true })
.success(function(data) {
// do stuff
})
The event are emitted from the module itself or by using one of the Progress service methods.
Include the Progress service to your controller or anywhere you want and you can use the following methods:
angular.module('app')
.controller('ProgressCtrl', function($scope, $timeout, Progress) {
Progress.start();
$timeout(function() {
Progress.complete();
}, 2000)
})
FAQs
automatic progress bar for your angular apps
The npm package angular-progress receives a total of 26 weekly downloads. As such, angular-progress popularity was classified as not popular.
We found that angular-progress demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.