逃了半輩子的 Angular 跟 typescript,最終還是得面對。目標只是用最短的時間做好頁面。
由於 Angular 是單一網頁的應用程式,所以要添加頁面,其實是要添加 component
先執行安裝 Angular Cli
npm install -g @angular/cli@8.3.26

在 ClientApp 資料夾下執行
ng generate component words --module=app.module

在 app.module 添加 words 到 RouterModule

運行後,已經可以瀏覽 word 頁面
