Skip to content

spira/angular-http-progress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d934abf · Nov 27, 2015

History

31 Commits
Nov 27, 2015
Nov 27, 2015
Jul 7, 2015
Jul 13, 2015
Jul 6, 2015
Jul 13, 2015
Jul 6, 2015
Jul 13, 2015
Jul 6, 2015
Jul 6, 2015
Nov 27, 2015
Jul 13, 2015
Jul 6, 2015
Nov 27, 2015
Jul 6, 2015

Repository files navigation

angular-http-progress

Wrapper for https://github.com/victorbjelkholm/ngprogress - automatically handles http progress with interceptor

Build Status Coverage Status Dependency Status Bower version npm version

Intro

This module wraps https://github.com/victorbjelkholm/ngprogress, adding an interceptor for reporting progress of http requests and various throttling fixes to stop overloading the site progress module.

Installation

Install through bower:

bower install angular-http-progress --save

Usage

  • Require the ngHttpProgress module in your angular application
angular.module('app', ['ngHttpProgress'])
  • (Optionally) configure the service provider
angular.module('app', ['ngHttpProgress'])
.config(['ngHttpProgress', function(ngHttpProgressProvider){
    ngHttpProgressProvider
        .configure({
            color: '#ff000',
            height: '10px'
        })
    ;
}])
  • ???
  • Profit! All outgoing http requests will start or bump the progress meter, when all pending requests are resolved, the progress bar will complete.

About

Wrapper for https://github.com/victorbjelkholm/ngprogress - automatically handles http progress with interceptor

Resources

Stars

Watchers

Forks

Packages

No packages published