Angular使用Component

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

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

Step 3 在「app.component.html」中插入剛剛找到的「<app-component> </app-component> 」

Angular使用Component

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

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

Step 3 在「app.component.html」中插入剛剛找到的「<app-component> </app-component> 」