创建组件
ng g component componentName

第一步:引入其他组件

ngFor指令与数据绑定(数据驱动视图)

父组件穿值到自组建

 

posted on 2018-04-20 18:19  chester·chen  阅读(169)  评论(0编辑  收藏  举报