Question: what is ng-template in angular?
Answer: ng-template is an Angular element used to render HTML templates. We use ng-template with angular *ngIf directive to display else template. ... And have a look at the generated HTML source code.