ng-dynamic-component
Dynamic components with full life-cycle support for inputs and outputs for Angular (by gund)
UAT-DynamicViewKit
A set of tools for dynamic functionality for Angular components and directives (by tme321)
Our great sponsors
ng-dynamic-component | UAT-DynamicViewKit | |
---|---|---|
2 | 8 | |
555 | 10 | |
- | - | |
3.4 | 0.0 | |
about 1 year ago | over 5 years ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ng-dynamic-component
Posts with mentions or reviews of ng-dynamic-component.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-23.
-
Dynamically rendering Angular components with dynamic instance props
Also, if you just want to have this functionality, I can recommend ng-dynamic-component.
-
Need suggestions on optimizing rendering nested dynamic components
I'm currently using library: https://github.com/gund/ng-dynamic-component
UAT-DynamicViewKit
Posts with mentions or reviews of UAT-DynamicViewKit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-23.
-
How to load component dynamically using component name?
Code of the demo.
-
Dynamically rendering Angular components with dynamic instance props
I've got an old repo that does the things you are describing.
-
Trying to figure out how to use a JSON Animation to transition between screens
What I can point you towards is my own library for working with these. The documentation for using my dynamic animations is part of my dynamic toolkit which you can use as an example. The code for these dynamic animations is extensive as my goal was to implement a state machine that mirrors the way the animations component field works. So my dynamic animations also works off of states and animated transitions between them.
-
What is the best way to implement dynamic components?
You can pretty easily wrap the suggested code up into your own desired functionality. For instance here is my stab at a generic reusable dcl. But from what I know you still end up with the boiler plate from the docs at some level.
-
How do I pass content items rendered by component A to a host component B so that component B can render each item selectively in its own custom sections?
But if you want to try the needlessly complex route then here is the service in a library I wrote. The code is abstracted there so it might not help a lot but if you do want to dig through that entire section and look at how I use a view container ref for where things can be placed, attach template ref directives to individual pieces of content, the small demo just to show that it works, and see the demo actually executing then by all means knock yourself out.
-
Creating generic service template.
This isn't exactly the same, but here I am allowing a custom definition of a resource for my module, which overwrites the default, if one is defined in the code consuming my library.
-
Abrupt transition using animation builder
If you would like you can look at the work I've done with the animation builder and an extremely simple demo using it that does not have the issue you are seeing. Also here is the code to that demo.
-
Dynamic component list
So I'm going to skip over more details about dynamic components and instead point you towards my deck library. It has far more documentation than I could write here which shows more or less how I approached a very similar problem.
What are some alternatives?
When comparing ng-dynamic-component and UAT-DynamicViewKit you can also consider the following projects:
dynamic-component-loader - Example of how to dynamically load components in Angular v9
angular6-dynamic-dashboard - Dynamic dashboard prototype using angular-gridster2 and ngx-dynamic-template
ng-mocks - Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
ngxd - ✨🦊 NgComponentOutlet + Data-Binding + Full Lifecycle = NgxComponentOutlet for Angular 7, 8, 9, 10, 11, 12, 13, 14, 15, 16+
ng-dynamic - dynamic contents projection in Angular
react-native-wormhole - ⚛️ 🌌 Inter-dimensional Portals for React Native. 👽 🖖