Hi, AspNetZero guys.. (abp-zero-template version 11.0.0) In entityname.component.html is used (inside p-table) (My entityname is EstadosProceso, but I changed this name for 'EntityName' here for simplicity, except on image)
for show the modal view component.., and this works because the component is included at bottom as
<viewEntityNameModal #viewEntityNameModal>
but... on the component.ts file, the viewchild is defined
@ViewChild('viewEntityNameModalComponent', { static: true }) viewEntityNameModal: ViewEntityNameModalComponent;
and, when I need show the popup, I got an error about the object viewEntityNameModal is undefined...
clickEnVer(e): void
{
const objSel = e.row.data;
this.viewEntityNameModal.show(objSel);
}
I found that If I change the @Viewchild line to (erasing the 'Component' word)
@ViewChild('viewXXXEntityModal', { static: true }) viewXXXEntityModal: ViewXXXEntityModalComponent;
and my function works.
This is a bug on RadTool's templates ?
Thanks a lot.
1 Answer(s)
-
0
Hi,
This seems like a bug, could you follow https://github.com/aspnetzero/aspnet-zero-core/issues/4651 ? We will fix this and release a new version.