mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
27 lines
513 B
TypeScript
27 lines
513 B
TypeScript
|
|
|
|
var app = angular.module('testModule', ['angular-loading-bar']);
|
|
|
|
class TestController {
|
|
|
|
constructor($http: ng.IHttpService) {
|
|
|
|
$http.get("http://xyz.com", { ignoreLoadingBar: true })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
app.controller('TestController', TestController);
|
|
|
|
var barConfig: angular.loadingBar.ILoadingBarProvider[] = [];
|
|
barConfig.push({
|
|
includeSpinner: true,
|
|
includeBar: true,
|
|
spinnerTemplate: 'template',
|
|
latencyThreshold: 100,
|
|
startSize: 0.02,
|
|
loadingBarTemplate: '',
|
|
autoIncrement: true
|
|
});
|