From 17ee737a3bf56be38a13f1ec53084130017e1746 Mon Sep 17 00:00:00 2001 From: Vinay Bhinde Date: Tue, 1 Aug 2017 16:53:38 +0530 Subject: [PATCH 1/2] Update Readme.md Added details about autoIncrement flag that was missing. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index cb409bd..f5034a3 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,16 @@ angular.module('myApp', ['angular-loading-bar']) }]) ``` +#### Turn auto increment feature off : +When using cfpLoadingBar (full example is shown [here](https://github.com/vinaynb/angular-loading-bar/blob/master/README.md#service-api-advanced-usage)) to show a loader, it is auto incremented by default. If you need to disable this then use `autoIncrement` flag as follows: + +```js +angular.module('myApp', ['angular-loading-bar']) + .config(['cfpLoadingBarProvider', function(cfpLoadingBarProvider) { + cfpLoadingBarProvider.autoIncrement = false; \\default=true + }]) +``` + #### Customize the template: If you'd like to replace the default HTML template you can configure it by providing inline HTML as a string: From 430a7219bd80a0522c357b5e5f77c4cc20b66062 Mon Sep 17 00:00:00 2001 From: Vinay Bhinde Date: Tue, 1 Aug 2017 16:54:15 +0530 Subject: [PATCH 2/2] Fixed typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f5034a3..1c75fb7 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ When using cfpLoadingBar (full example is shown [here](https://github.com/vinayn ```js angular.module('myApp', ['angular-loading-bar']) .config(['cfpLoadingBarProvider', function(cfpLoadingBarProvider) { - cfpLoadingBarProvider.autoIncrement = false; \\default=true + cfpLoadingBarProvider.autoIncrement = false; //default=true }]) ```