20 lines
462 B
TypeScript
20 lines
462 B
TypeScript
import { NgModule, ModuleWithProviders } from '@angular/core';
|
|
|
|
import { ElectronNativeService } from './services/electron-native.service';
|
|
|
|
const SERVICES = [ElectronNativeService];
|
|
|
|
@NgModule({
|
|
declarations: [],
|
|
imports: [],
|
|
exports: []
|
|
})
|
|
export class UCapElectronNativeModule {
|
|
public static forRoot(): ModuleWithProviders<UCapElectronNativeModule> {
|
|
return {
|
|
ngModule: UCapElectronNativeModule,
|
|
providers: [...SERVICES]
|
|
};
|
|
}
|
|
}
|