@nstudio/schematics
Version:
Cross-platform (xplat) tools for Nx workspaces.
21 lines (18 loc) • 579 B
text/typescript
import { NgModule, Optional, SkipSelf } from '@angular/core';
import { throwIfAlreadyLoaded } from '@<%= npmScope %>/utils';
import { ELECTRON_PROVIDERS, ElectronService } from './services';
({
providers: [
...ELECTRON_PROVIDERS
]
})
export class <%= utils.classify(prefix) %>ElectronCoreModule {
constructor(
()
()
parentModule: <%= utils.classify(prefix) %>ElectronCoreModule,
private _electronService: ElectronService
) {
throwIfAlreadyLoaded(parentModule, '<%= utils.classify(prefix) %>ElectronCoreModule');
}
}