- Added namespace ‘LoadingBar’

- Added loadingBar interface Definition
This commit is contained in:
stunaz 2015-12-10 19:55:49 -05:00
parent f8af639bf2
commit d84ba2d2c3
2 changed files with 34 additions and 2 deletions

View File

@ -13,3 +13,13 @@ class TestController {
}
app.controller('TestController', TestController);
var barConfig: angular.loadingBar.ILoadingBarProvider[] = [];
barConfig.push({
includeSpinner: true,
includeBar: true,
spinnerTemplate: 'template',
latencyThreshold: 100
});

View File

@ -6,7 +6,7 @@
/// <reference path="../angularjs/angular.d.ts" />
declare module angular {
declare module angular.loadingBar {
interface IRequestShortcutConfig {
/**
@ -15,4 +15,26 @@ declare module angular {
ignoreLoadingBar?: boolean;
}
}
interface ILoadingBarProvider{
/**
* Turn the spinner on or off
*/
includeSpinner?: boolean;
/**
* Turn the loading bar on or off
*/
includeBar?: boolean;
/**
* HTML template
*/
spinnerTemplate?: string;
/**
* Latency Threshold
*/
latencyThreshold?: number;
}
}