iT邦幫忙

0

Angular <Django>#2 專案:新增 與 啟動

Angular

1. 新增專案

ng new [project-name]

範例ng new system
https://ithelp.ithome.com.tw/upload/images/20210501/201371349UTpFfDLOk.png
https://ithelp.ithome.com.tw/upload/images/20210501/20137134XJI1hRgNRc.png


2. 在VSCode開啟專案資料夾

https://ithelp.ithome.com.tw/upload/images/20210501/20137134Qx2gvNxxLs.png

3. VSCode 撰寫

src>app>app.component.html

<h3>系統畫面</h3>

4. 啟動專案

ng serve --open --port [XXXX]

範例ng serve --open --port 9985
https://ithelp.ithome.com.tw/upload/images/20210502/20137134gdcghwQdu7.png
https://ithelp.ithome.com.tw/upload/images/20210502/20137134Bs9Uc7zMt9.png


5.完成

https://ithelp.ithome.com.tw/upload/images/20210501/20137134Zzas6Jpjl6.png


上一篇
下一篇


尚未有邦友留言

立即登入留言