[Angular Directive] Structure directive and <template>

The structure directive is just a sugar syntax of <template>.

Such as:

<div *ngIf="name.length > 2">
    This is something...
</div>

Equal to:

<template [ngIf]="name.length > 2">
    <div> There are somoething</div>
</template>
原文地址:https://www.cnblogs.com/Answer1215/p/6293761.html