2.1.0 • Published 7 years ago

ng-neo-electron v2.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ng-neo-electron

Comunication service between Angular and Electron

Installation

To install this library, run:

$ npm install ng-neo-electron --save

and then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import library
import { NeoElectronModule } from 'ng-neo-electron';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify library as an import
    NeoElectronModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once library is imported, you can use it in your Angular application:

import { NeoElectronService } from 'ng-neo-electron';

constructor(private electronService: NeoElectronService){}

// In any function
if( this.electronService.isElectronApp())
  window.alert('This is a electron app')

License

MIT © Neocomplexx

2.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago