UNPKG

angular2-hotkeys

Version:

Angular 16 and Ivy Compatible. Older versions might work but isn't officially tested.

31 lines 4.19 kB
import { NgModule } from '@angular/core'; import { HotkeysDirective } from './hotkeys.directive'; import { HotkeysCheatsheetComponent } from './hotkeys-cheatsheet/hotkeys-cheatsheet.component'; import { CommonModule } from '@angular/common'; import { HotkeyOptions } from './hotkey.options'; import { HotkeysService } from './hotkeys.service'; import * as i0 from "@angular/core"; export class HotkeyModule { // noinspection JSUnusedGlobalSymbols static forRoot(options = {}) { return { ngModule: HotkeyModule, providers: [ HotkeysService, { provide: HotkeyOptions, useValue: options } ] }; } static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: HotkeyModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.2", ngImport: i0, type: HotkeyModule, declarations: [HotkeysDirective, HotkeysCheatsheetComponent], imports: [CommonModule], exports: [HotkeysDirective, HotkeysCheatsheetComponent] }); } static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: HotkeyModule, imports: [CommonModule] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: HotkeyModule, decorators: [{ type: NgModule, args: [{ declarations: [HotkeysDirective, HotkeysCheatsheetComponent], imports: [CommonModule], exports: [HotkeysDirective, HotkeysCheatsheetComponent] }] }] }); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG90a2V5Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvaG90a2V5Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQzt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