Angular使用Component

Step 1 找到新增的Component中的ts檔案

Step 2 找到selector欄位的名稱「’app-component’」

Step 3 在「app.component.html」中插入剛剛找到的「<app-component> </app-component> 」
【教學】Angular如何使用Component?
A blog of my life
Angular使用Component
Step 1 找到新增的Component中的ts檔案
Step 2 找到selector欄位的名稱「’app-component’」
Step 3 在「app.component.html」中插入剛剛找到的「<app-component> </app-component> 」