DEV Community

Discussion on: Advance Angular Dynamic Component

Collapse
 
remshams profile image
Mathias Remshardt • Edited

This is/was a really interesting read.

As an alternative I could think of:

  • an Observable(Inputs) or a Subject(Outputs) passed through to the dynamic component using the injector
  • a shared service injected into the dynamic component

Your solution has the advantage that it can almost be used as a standard component at the cost of writing the outlined helper implementations.

Thank you for sharing the idea/solution.