Let's assume following ItemComponent that is created many times:
<li *ngFor="let item of items">
<app-item [data]="item"></app-item>
</li>
and contains buttons that on click display some complex modal dialogs .
Does it affect performance of the app (e.g. startup time, or memory footprint), when I place some ng-templates of the dialogs inside the ItemComponent, or outside the *ngFor?
I mean, I know the templates are not instantiated until the dialogs are invoked, but I'm not sure if the template itself is created once per component, or once per instance?