mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Allow @types/angular-loading-bar to export a string name for angular module inclusion * Add in the methods for @types/angular-loading-bar and fix the tests
25 lines
573 B
TypeScript
25 lines
573 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.includeSpinner = false;
|
|
barConfig.includeBar = false;
|
|
barConfig.spinnerTemplate = 'someOtherTemplateString';
|
|
barConfig.latencyThreshold = 70;
|
|
barConfig.startSize = 0.05;
|
|
barConfig.loadingBarTemplate = 'anotherTemplateString';
|
|
barConfig.autoIncrement = false;
|