Question: why we use ng container?
Answer: ng-container is an element that's available in Angular 2+ and that can act as the host to structural directives. And this is also really useful when using ngIf on inline content to avoid the need for a bunch of span elements.