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 {
|
|
|
|
|
|
|
|
|
|
constructor($http: ng.IHttpService) {
|
|
|
|
|
|
|
|
|
|
$http.get("http://xyz.com", { ignoreLoadingBar: true })
|
2015-12-20 06:04:37 +00:00
|
|
|
|
2015-10-13 17:00:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
app.controller('TestController', TestController);
|
2015-12-11 00:55:49 +00:00
|
|
|
|
|
|
|
|
var barConfig: angular.loadingBar.ILoadingBarProvider[] = [];
|
|
|
|
|
barConfig.push({
|
|
|
|
|
includeSpinner: true,
|
|
|
|
|
includeBar: true,
|
|
|
|
|
spinnerTemplate: 'template',
|
2017-09-15 03:10:53 +00:00
|
|
|
latencyThreshold: 100,
|
|
|
|
|
startSize: 0.02,
|
|
|
|
|
loadingBarTemplate: '',
|
|
|
|
|
autoIncrement: true
|
2015-12-11 00:55:49 +00:00
|
|
|
});
|