11.8.10 • Published 2 years ago

@ngx-electron/renderer v11.8.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@ngx-electron/renderer

angular 8.x electron 7.x

main.ts

import {ipcMainProxy} from '@ngx-electron/main';

ipcMainProxy.on('test', (event, a) => {
    a((args) => {
        console.log(args);
    });
});

angular

constructor(private electronService: ElectronService) {}

test() {
    this.electronService.ipcRenderer.send('test', (callback: (args) => void) => {
        // ...
        callback('俩层回调函数');
        // ...
    });
}
11.8.10

2 years ago

11.8.9

2 years ago

11.8.8

2 years ago

11.8.7

2 years ago

11.8.6

2 years ago

11.8.5

2 years ago