What is the difference between *ngIf and [hidden]?

后端 未结 6 1085
名媛妹妹
名媛妹妹 2020-11-30 06:14

Say I check it against and expression, then aren\'t these two same ?

{{val}}
6条回答
  •  北海茫月
    2020-11-30 06:54

    *ngIf if false will remove the element from the DOM

    Hidden if true will set the display to none in css

提交回复
热议问题