angular6学习(十一):属性指令

一:ngStyle

设置样式:

ts文件:

html文件

引用app-server

显示:

二:ngClass

设置离线时字体为白色

ts文件

html文件

显示:

三: ngfor  循环指令

ts文件:

html文件:

显示:

猜你喜欢

转载自blog.csdn.net/plpldog/article/details/82907471