Code Monkey home page Code Monkey logo

angular-electron's Introduction

image

Creating Angular Desktop Apps with Electron

In this tutorial, we are going to take a look at how to turn any angular application into a native desktop app using electron.

You will learn how to set up an angular app and run it inside of electron using typescript all the way.

Also, you will discover how to use native APIs like the file system from your angular application using electrons IPC methods.

Ready?

Let's get started!

Read the full article on malcoded.com

Starting the application

yarn electron

angular-electron's People

Contributors

lukasmarx avatar toku-robotics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

angular-electron's Issues

Is there a way for hot reloading with this setup?

I got the project building and running. This seems like a nice approach. Wonder what your workflow is for editing code and seeing changes. Code changes in angular and code changes in the electron area...

works with electron 3.0.9 but not with 5.0.0

The repo download worked great, but when I tried to copy this process into my electron 5.0.0 project this line fails:

this.ipc = (<any>window).require("electron").ipcRenderer;

Is there some updated way to get a reference to the ipcRenderer from inside Angular?

Out-of-the-box Karma test error

I have just cloned the repo and run npm install
.
I run npm run electron
and after this 'npm test'

So the Karma will fail, because ipc is not defined.

TypeError: Cannot read property 'once' of undefined
    at http://localhost:9876/src/app/file.service.ts?:24:16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.