Currently, I have 8 custom Modals that are called in various places within my app. These modals are currently located inside the app.component.html as shown below:
<agc class="app-content" [rows]="'auto 1fr'" [height]="'100%'" [pad]="15">
<router-outlet></router-outlet>
<app-create-batch #CreateBatch></app-create-batch>
<app-create-import #CreateImport></app-create-import>
<app-create-import-newline #CreateImportNewLine></app-create-import-newline>
<app-export-data #ExportData></app-export-data>
<app-sales-transaction #SalesTransaction></app-sales-transaction>
<!-- <app-create-part #CreatePart></app-create-part> -->
<app-import-export #ImportExport></app-import-export>
<app-create-claim #CreateClaim></app-create-claim>
<app-claim-details #ClaimDetails></app-claim-details>
</agc>
However, it was not anticipated that each dialog would be initialized during startup. Can anyone provide suggestions on the appropriate placement for components like Modals that may be called on different pages without having to load all of them at startup?