2019-11-08

Angular 環境

官網:https://angular.io/

安裝:
npm i @angular/cli -g

建立專案:
ng new my-proj

或建立專案時產生routes模組:
ng new hello-cli --routing

啟動測試的 web server:
ng serve
ng serve --prod

測試網址:
http://localhost:4200

建立產品版本:
ng build --prod

建立 component:
ng generate component my-component
ng g c my-component










FB 留言