Angular

Last Updated: 8/21/2023

ngContainer

  • At runtime angular is going to take only the content of ng-container and not going to render the ng-container element in the DOM
  • If you want to render something without putting inside a div or another kind of html element use ng-container in angular
  • Use If you want the replace only the content without any additional element
<bootstrap-panel>
	<ng-container class="heading">Heading</ng-container>
	<ng-container class="body">Body content</ng-container>
</bootstrap-panel>