UNPKG

@nstudio/schematics

Version:

Cross-platform (xplat) tools for Nx workspaces.

21 lines (18 loc) 579 B
import { NgModule, Optional, SkipSelf } from '@angular/core'; import { throwIfAlreadyLoaded } from '@<%= npmScope %>/utils'; import { ELECTRON_PROVIDERS, ElectronService } from './services'; @NgModule({ providers: [ ...ELECTRON_PROVIDERS ] }) export class <%= utils.classify(prefix) %>ElectronCoreModule { constructor( @Optional() @SkipSelf() parentModule: <%= utils.classify(prefix) %>ElectronCoreModule, private _electronService: ElectronService ) { throwIfAlreadyLoaded(parentModule, '<%= utils.classify(prefix) %>ElectronCoreModule'); } }