YUNOVA · Angular · Module 12: Angular architecture
Dynamic components
Dynamic components
Key points
- ViewContainerRef.createComponent creates a component at runtime.
- Inputs can be set on the created component with setInput.
- Dynamic components suit dialogs, tabs and plugin-style layouts.