mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-03 08:40:12 +00:00
Merge pull request #6272 from stephenlautier/angular-loading-bar
Added definitions for angular-loading-bar
This commit is contained in:
15
angular-loading-bar/angular-loading-bar-tests.ts
Normal file
15
angular-loading-bar/angular-loading-bar-tests.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/// <reference path="angular-loading-bar.d.ts" />
|
||||
|
||||
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);
|
||||
18
angular-loading-bar/angular-loading-bar.d.ts
vendored
Normal file
18
angular-loading-bar/angular-loading-bar.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// Type definitions for angular-loading-bar
|
||||
// Project: https://github.com/chieffancypants/angular-loading-bar
|
||||
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
|
||||
declare module angular {
|
||||
|
||||
interface IRequestShortcutConfig {
|
||||
/**
|
||||
* Indicates that the loading bar should be hidden.
|
||||
*/
|
||||
ignoreLoadingBar?: boolean;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user