diff --git a/src/clipboard.service.ts b/src/clipboard.service.ts index 04f955b..9557d43 100644 --- a/src/clipboard.service.ts +++ b/src/clipboard.service.ts @@ -103,7 +103,11 @@ export function CLIPBOARD_SERVICE_PROVIDER_FACTORY(doc: Document, win: Window, p } export const CLIPBOARD_SERVICE_PROVIDER = { - deps: [DOCUMENT, WINDOW, [new Optional(), new SkipSelf(), ClipboardService]], + deps: [ + DOCUMENT as InjectionToken, + WINDOW as InjectionToken, + [new Optional(), new SkipSelf(), ClipboardService] + ], provide: ClipboardService, useFactory: CLIPBOARD_SERVICE_PROVIDER_FACTORY };