ng-container是一个特殊的tag标签

1.简单实例

  1. <div>
  2. <ng-container>
  3. <p>
  4. this is paragraph 1.
  5. </p>
  6. <p>
  7. this is paragraph 2.
  8. </p>
  9. </ng-container>
  10. </div>

image.png