You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Is there a less hacky way to access modal body markup (Angular 15, if it matters) than:
const mapLayerModalRef = this.modalService.open(this.mapLayerContent, { centered: true, size: 'xl' });
mapLayerModalRef.dismissed.subscribe(() => {
const dialogRef = (mapLayerModalRef as any)._windowCmptRef.instance._dialogEl as ElementRef;
this.mapLayerContentBodyMarkup = (mapLayerContentBody as HTMLElement).innerHTML; //accessing modal body markup in a very hacky way
});
?
Markup:
<ng-template #mapLayerContent let-modal let-c="close" let-d="dismiss">
...
<div class="modal-body"><!-- Need to access this markup --></div>
</ng-template>
I've tried different approaches (e.g. using this.mapLayerContent TemplateRef), but in vain.
The text was updated successfully, but these errors were encountered:
Hi. Is there a less hacky way to access modal body markup (Angular 15, if it matters) than:
?
Markup:
I've tried different approaches (e.g. using this.mapLayerContent
TemplateRef
), but in vain.The text was updated successfully, but these errors were encountered: