mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
374 B
TypeScript
12 lines
374 B
TypeScript
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');
|
|
}
|
|
};
|
|
});
|