📜  *ngif 与 ngif - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:07.085000             🧑  作者: Mango

代码示例1
ngIf is the directive. Because it's a structural directive (template-based), you need to use the * prefix to use it into templates.

*ngIf corresponds to the shortcut for the following syntax ("syntactic sugar"):


Equivalent to:

Our heroes are true!