mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Definitions for angular-spinner directive
This commit is contained in:
parent
9d2478b8a8
commit
6375ea8040
12
angular-spinner/angular-spinner-tests.ts
Normal file
12
angular-spinner/angular-spinner-tests.ts
Normal file
@ -0,0 +1,12 @@
|
||||
/// <reference path="angular-spinner.d.ts" />
|
||||
|
||||
var myApp = angular.module('testModule');
|
||||
|
||||
module AngularSpinnerTest {
|
||||
var app = angular.module("angularSpinnerTest", ["angular-spinner"]);
|
||||
|
||||
app.config(['usSpinnerService', function(usSpinnerService: ISpinnerService) {
|
||||
usSpinnerService.spin('key1');
|
||||
usSpinnerService.stop('key2');
|
||||
}]);
|
||||
}
|
||||
26
angular-spinner/angular-spinner.d.ts
vendored
Normal file
26
angular-spinner/angular-spinner.d.ts
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
// Type definitions for angular-spinner.js 0.5.1
|
||||
// Project: https://github.com/urish/angular-spinner
|
||||
// Definitions by: Marcin Biegała <https://github.com/Biegal>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
/**
|
||||
* SpinnerService
|
||||
* see https://github.com/urish/angular-spinner
|
||||
*/
|
||||
interface ISpinnerService {
|
||||
/**
|
||||
* Start selected spinner
|
||||
*
|
||||
* @param spinner key
|
||||
*/
|
||||
spin(key: string): void;
|
||||
|
||||
/**
|
||||
* Stop selected spinner
|
||||
*
|
||||
* @param spinner key
|
||||
*/
|
||||
stop(key: string): void;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user