
Description
ng-dynamic-component is an Angular library for rendering components at runtime with full lifecycle support for their inputs and outputs. You add the dynamic component element to a template, bind it to the component type to render, and pass inputs and outputs to it. A standalone API is available from version 10.7.0, though dynamic inputs and outputs then need their own imports. The library also works with Angular's NgComponentOutlet through DynamicIoModule and the ndcDynamicInputs and ndcDynamicOutputs directives. For signal-based inputs and outputs, the README points to a separate signal-component-io package. Compatibility is listed by version: version 11.x works with Angular 14.1.3 and later, and the README says Angular 22 and later need version 11 or later, because Angular removed ComponentFactoryResolver and ComponentFactory. The maintainers also ask for feedback on a proposed new API. The source is public on GitHub and the package is installed from npm.…
Highlights
- Dynamic components with inputs and outputs lifecycle
- Standalone API from version 10.7.0
- NgComponentOutlet support with ndcDynamicInputs and ndcDynamicOutputs
- Version 11 supports Angular 22 and later
- Signal-based inputs and outputs in a separate package
Ratings & Reviews
No ratings yet
Be the first to rate ng-dynamic-component.
People also visit

ngx-sub-form
Utility library for breaking down an Angular form into multiple components
ngx-bootstrap-icons
Bootstrap Icons components library for your Angular Applications
Hub UI
Reusable Angular UI components for standalone apps, Angular Signals workflows

ng-forge
A type‑safe, dynamic forms library built for Angular’s signal‑based forms
ng-dynamic-component FAQ
What is ng-dynamic-component?
An Angular library for rendering components at runtime, with their inputs and outputs handled through the component lifecycle.
Which version fits my Angular version?
Version 11.x works with Angular 14.1.3 and later. The README says Angular 22 and later need version 11 or later.
Can I use it as a standalone component?
Yes, since version 10.7.0. The standalone component imports only the dynamic component itself, so dynamic inputs and outputs need their own imports.
Does it support signals?
For signal-based components, the README points to the signal-component-io package.
Is it open source?
Yes. The source is public on GitHub at gund/ng-dynamic-component, and the package is on npm.
What are the best ng-dynamic-component alternatives?
Popular alternatives to ng-dynamic-component include ngx-sharebuttons, ngx-sub-form and ngx-bootstrap-icons. See all ng-dynamic-component alternatives















