04Angular 指令(循环)

循环指令

  *ngFor

  语法:<any *ngFor="let tmp of  list "></any>

demo03.component.ts

  

app.component.ts

  

app.module.ts

    

 当不使用*ngFor时,

  

注意template模板解析要加双引号 {{ }}

 

 

循环指令②

 

 

posted @ 2020-01-15 23:22  shanlu  阅读(397)  评论(0编辑  收藏  举报