番外
為什么一個ts文件變成了component,因為它使用了@components裝飾器

components is just a class,you export it so angular know how to use it

?
?
?舉例:組件裝飾器

decoration前總是有一個@符號?
?![]()
![]()
?
?

decoration的作用(之一?)

@NgModule是一個裝飾器,它是從angular/core中引入的
?屬性bootstrap(引導程序)告訴 angular應該引入哪一個組件