Generate child igx-hierarchical-grids dynamically #12765
Labels
general: standalone
grid: hierarchical-grid
🧰 feature-request
version: 16.0.x
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Is your feature request related to a problem? Please describe.
Currently, child
igx-hierarchical-grid
components are static children of theigx-child-grid-row
and theigx-child-grid-row
is part of theigx-hierarchical-grid
template. While usingNgModule
and at runtime, this isn't a problem because the template holding theigx-child-grid-row
is created dynamically. However, in astandalone
component scenario, this is a problem, because theIgxChildGridRowComponent
depends on and importsIgxHierarchicalGridComponent
and vice versa. This creates a cyclical import when the hierarhical grid component used in an app as a standalone component.Describe the solution you'd like
The
igx-hierarhical-grid
doesn't have to be a static child of theigx-child-grid-row
and can instead be created dynamically using the newcreateComponent
api.Describe alternatives you've considered
There hasn't been any alternative that I've discovered so far.
Additional context
The issue can be seen in #12699. Just run any of the hierarchical grid tests.
UPDATE:
ComponentFactory
andComponentFactoryResolver
are being removed in Angular 16. We have to get rid of all of the usage of these APIs.The text was updated successfully, but these errors were encountered: