mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* adding angular clipboard * adding tests * fixing unit tests * Update angular-clipboard-tests.ts triggering build * adhering to the no interface I convention * just using a module now * strictNullChecks: true, and removing declare module
15 lines
460 B
TypeScript
15 lines
460 B
TypeScript
/// <reference path="./index.d.ts" />
|
|
/// <reference path="../angular/index.d.ts" />
|
|
|
|
import * as angular from "angular";
|
|
import {ClipboardService} from "angular-clipboard";
|
|
|
|
const app = angular.module('testModule', ['angular-clipboard']);
|
|
app.controller('TestController', ($scope: ng.IScope, clipboard: ClipboardService) => {
|
|
$scope['testCopy'] = () => {
|
|
if (clipboard.supported) {
|
|
clipboard.copyText('hiiiiiii');
|
|
}
|
|
};
|
|
});
|