2016-05-10 19:22:25 +00:00
|
|
|
|
2015-10-13 17:00:32 +00:00
|
|
|
var app = angular.module('testModule', ['angular-loading-bar']);
|
|
|
|
|
|
|
|
|
|
class TestController {
|
|
|
|
|
|
2020-05-15 02:20:31 +00:00
|
|
|
constructor($http: ng.IHttpService) {
|
2015-10-13 17:00:32 +00:00
|
|
|
|
2020-05-15 02:20:31 +00:00
|
|
|
$http.get("http://xyz.com", { ignoreLoadingBar: true })
|
2015-12-20 06:04:37 +00:00
|
|
|
|
2020-05-15 02:20:31 +00:00
|
|
|
}
|
2015-10-13 17:00:32 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
app.controller('TestController', TestController);
|
2015-12-11 00:55:49 +00:00
|
|
|
|
2017-10-04 13:28:31 +00:00
|
|
|
var barConfig: angular.loadingBar.ILoadingBarProvider;
|
|
|
|
|
|
|
|
|
|
barConfig.includeSpinner = false;
|
|
|
|
|
barConfig.includeBar = false;
|
|
|
|
|
barConfig.spinnerTemplate = 'someOtherTemplateString';
|
|
|
|
|
barConfig.latencyThreshold = 70;
|
|
|
|
|
barConfig.startSize = 0.05;
|
|
|
|
|
barConfig.loadingBarTemplate = 'anotherTemplateString';
|
|
|
|
|
barConfig.autoIncrement = false;
|