typescript 如何使用 Angular 2 创建桌面应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37748949/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to create desktop application using Angular 2
提问by Nikunj Patel
Is it possible to create Desktop(Windows OS) application using Angular 2?
是否可以使用 Angular 2 创建桌面(Windows 操作系统)应用程序?
If yes then how can we build setup for desktop? Will it support windows 7 and Earlier?
如果是,那么我们如何为桌面构建设置?它会支持 Windows 7 及更早版本吗?
I noticed that, Angular 2 is for cross platform.
我注意到,Angular 2 适用于跨平台。
采纳答案by Sergio Rodrigues
You can try using Electron (by GitHub): http://electron.atom.io/
您可以尝试使用 Electron(通过 GitHub):http: //electron.atom.io/
Here an example using Electron + Angular 2: https://auth0.com/blog/2015/12/15/create-a-desktop-app-with-angular-2-and-electron/
这是一个使用 Electron + Angular 2 的例子:https: //auth0.com/blog/2015/12/15/create-a-desktop-app-with-angular-2-and-electron/
回答by Ahmed Kamal
回答by Mohideen bin Mohammed
you have 2 options
你有 2 个选择
1) Node web Kit - NWJS
1) 节点网络工具包 - NWJS
2) ElectronJS - Electron
2)ElectronJS -电子
Both are helps to develop Cross Platform Application
combination of NodeJS+Chromium Browser
can support 3rd parties libraies.. so you develop web app like Desktop using these 2 for all 3 platforms(Linux, Mac, Windows)
两者都有助于开发跨平台应用程序组合,NodeJS+Chromium Browser
可以支持 3rd 方库..所以您可以使用这 2 个为所有 3 个平台(Linux、Mac、Windows)开发像桌面这样的 Web 应用程序