ngx-electron | A simple Angular wrapper for electron 's Renderer API

 by   ThorstenHans TypeScript Version: v2.2.0 License: MIT

kandi X-RAY | ngx-electron Summary

kandi X-RAY | ngx-electron Summary

ngx-electron is a TypeScript library typically used in User Interface, Angular, Electron applications. ngx-electron has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Checkout the introduction post on my blog for more details.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ngx-electron has a low active ecosystem.
              It has 420 star(s) with 77 fork(s). There are 15 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 10 open issues and 40 have been closed. On average issues are closed in 181 days. There are 22 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ngx-electron is v2.2.0

            kandi-Quality Quality

              ngx-electron has 0 bugs and 0 code smells.

            kandi-Security Security

              ngx-electron has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ngx-electron code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ngx-electron is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ngx-electron releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ngx-electron
            Get all kandi verified functions for this library.

            ngx-electron Key Features

            No Key Features are available at this moment for ngx-electron.

            ngx-electron Examples and Code Snippets

            No Code Snippets are available at this moment for ngx-electron.

            Community Discussions

            QUESTION

            Angular & Electron - Execute external application
            Asked 2020-Dec-26 at 08:50

            I'm beginning with electron & angular.

            I'm trying to execute an external application. Let's say pks.exe that is in c:\kube\

            I did not find clearly if there is a way of doing that. I tried with ngx-electron library. I can open something like notepad or a word document using the openPath api. But it has not the the aim of executing something (and even more with parameters) just opening a file, just like if I clicked twice on it.

            I also saw people speaking of child_process. But I don't managed to have it working with angular. It seems it is only working with nodejs.

            Is there a solution ?

            ...

            ANSWER

            Answered 2020-Dec-25 at 22:06

            Ok so basically to answer in a bit more detail:

            Electrun is a multi process architecture. Basically, there are 2 processes, the main processes which is a nodeJS process and the renderer process which is a BrowserWindow running chromium. https://www.electronjs.org/docs/tutorial/application-architecture#differences-between-main-process-and-renderer-process

            Angular runs in the renderer. Since that is basically browser environment you can only perform javascript code that also works in a normal browser context. In a browser you can not perform scripts that directly open an application on your PC or something like a shell script. That would be a security nightmare (imagine visiting a website which could then execute arbitrary scripts on your PC. they could just run rm -rf / or open like e.g. 1000 instances of word.exe). You can indirectly open some apps with mailto: or tel: links etc...

            Since the main process is running nodeJS, you can include standard nodeJS libraries like child_process https://nodejs.org/api/child_process.html.

            So to get stuff working for you:

            In your code, you should forward the request to open the external application from the renderer (angular) process to the main (nodeJS) process. Checkout https://www.electronjs.org/docs/api/ipc-main and https://www.electronjs.org/docs/api/ipc-renderer on how to do that specifically.

            Angular (some service.ts or component.ts)

            Source https://stackoverflow.com/questions/64168362

            QUESTION

            How to set ipc with angular 9 service and electron main process
            Asked 2020-May-25 at 13:26

            I am facing issues with electron-angular (totally angular beginner here) ipc events. Here is my code:

            Electronhelper.service.ts

            ...

            ANSWER

            Answered 2020-May-25 at 13:26

            You can fetch the settings synchronously, often an option if loading (and blocking) doesn't take too long:

            Source https://stackoverflow.com/questions/62003045

            QUESTION

            DataTable: Print Not working in Angular 9 and Electron
            Asked 2020-Feb-15 at 08:31

            I have an android 9 app recently converted to Electron app. For DataTable, I have enabled Print and Excel options. Excel upload is fine and exporting data. But Print is not working. Its giving the following error

            ...

            ANSWER

            Answered 2020-Feb-15 at 08:31

            The information given in the post helped me ( angular application build in electron print a div shows blank window ).

            The answer is : in main.ts for electron, need to add nativeWindowOpen: true as below.

            Source https://stackoverflow.com/questions/60236676

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ngx-electron

            ngx-electron can be installed easily using either yarn or npm commands in the scope of an angular project. The NgxElectronModule needs to be import in your root Angular module (eg AppModule). Once the module has been imported, you can easily use dependency injection to get an instance of ElectronService.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ThorstenHans/ngx-electron.git

          • CLI

            gh repo clone ThorstenHans/ngx-electron

          • sshUrl

            git@github.com:ThorstenHans/ngx-electron.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular TypeScript Libraries

            developer-roadmap

            by kamranahmedse

            vscode

            by microsoft

            angular

            by angular

            TypeScript

            by microsoft

            ant-design

            by ant-design

            Try Top Libraries by ThorstenHans

            electron-angular-es6

            by ThorstenHansJavaScript

            electron-ngx-sample

            by ThorstenHansTypeScript

            aks-demo-app

            by ThorstenHansC#

            electron-es2015-ng2

            by ThorstenHansCSS

            generator-bower

            by ThorstenHansJavaScript