1

I want to convert an Angular JavaScript app into a native Windows application but I don't know how to do it. I heard that electron could be used for this but I don't know how to use electron.

3
  • 1
    You cannot package JS into an exe file with plain JS. Guess there is no way around it: get familiar with electron. There are tutorials out there that should help you to get started. Commented Jan 29, 2017 at 19:57
  • You might want to take a look at Electron Commented Jan 29, 2017 at 20:03
  • Try Cordova Framework. Commented Jan 30, 2017 at 1:53

2 Answers 2

2

Despite electron there is another solution called nativefier. It is actually quite simple and you don't have to learn a new framework like electron.

Sign up to request clarification or add additional context in comments.

Comments

1

As the comments pointed out already, this is not possible.

Why?

JavaScript can't run directly on the machine, neither do HTML and CSS. You need a browser that can understand those languages and turn them into commands your computer can understand. So your only way to run an Angular App without using chrome or Firefox or whatever browser, is Electron. It's basically a chrome browser plus your custom Angular app packed into an exe. So under the hood, it really just runs your code in a browser environment, but you have more control over it and no address bar etc.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.