1. 程式人生 > >angular 新建組件

angular 新建組件

color AR src 其他 數據驅動 col one mage AS

創建組件
ng g component componentName

第一步:引入其他組件

技術分享圖片

技術分享圖片

ngFor指令與數據綁定(數據驅動視圖)

技術分享圖片

父組件穿值到自組建

技術分享圖片

angular 新建組件