angular6学习(十):指令

基础知识

一:ngIf

 实现功能:在输入框内输入内容,按按钮后将内容显示到下方

ts文件

html文件:

显示:

点击后:

猜你喜欢

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