2016-12-22 63 views

回答

0

你應該創建一個在瀏覽器中,當您運行如本地運行的應用程序建立角2桌面應用程序的任何實例。 index.html的

那麼您可以在getting started集的package.json喜歡提到:

{ 
    "name": "helloworld", 
    "main": "index.html" 
} 

並運行應用程序:

步驟3.運行你的應用程序

CD /路徑/ to/your/app

/path/to/nw。

快樂黑客!

+1

感謝您的回覆...使用/src/app/app.componet.ts的Angular 2引導程序,然後調用/src/index.html – DustyFog

+0

我建議首先構建您的角度應用程序(例如,使用'angular-cli'它會'ng build -prod --aot'。這會創建一個構建目錄,其入口點是它的'index.html'。沒有嘗試過,但因爲我很好奇,我會嘗試它很快;-) –

相關問題