<p>
I turned the corner
<ng-container *ngIf="hero">
and saw {{hero.name}}. I waved
</ng-container>
and continued on my way.
</p>
当然这里 ng-container可以用div替换, 但是 替换后 html的结构就不一样了。
<p>
I turned the corner
<ng-container *ngIf="hero">
and saw {{hero.name}}. I waved
</ng-container>
and continued on my way.
</p>
当然这里 ng-container可以用div替换, 但是 替换后 html的结构就不一样了。