📅  最后修改于: 2022-03-11 14:49:07.085000             🧑  作者: Mango
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"):
Our heroes are true!
Equivalent to:
Our heroes are true!