1. 程式人生 > >Angular Cli 建立並且執行專案

Angular Cli 建立並且執行專案

1:進入cmd  ,然後切換到自己專案的目錄,如在D盤下的 angular2 Test 

執行:ng new hello

2: 然後切換到 專案目錄下執行: ng serve --open 

這個時候 就會看到 瀏覽器自動打開了一個地址為:http://localhost:4200/  截圖如下,說明已經成功建立了 一個angular2 web專案了。