data binding not working for dynamic component #16849
I'm submitting a ... (check one with "x")
When a component is created and inserted using a factory it shows up in the UI, but data-binding (both one-way and two-way) does not get applied.
Component should work as though it was created the "normal" way.
Minimal reproduction of the problem with instructions
This plunkr illustrates the issues: https://plnkr.co/edit/sD800XIb23gD7xftJha8?p=preview
This was reported in #10523, but the issue was closed because it was deemed a support request.
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Windows 7, Tomcat 8.5
IE 11, FF 44 ESR, FF 53
You're creating component outside change detection tree. Either use
I know this is over a year old, but I'm confused about how it works. What part of the added code binds the value of
I assume the Plunkr worked when this issue was posted but of course it doesn't anymore -- I'd really like to see it in action to understand this better.
Thanks, I just found a bunch of stuff about how dynamic components don't actually support Input / Output, how ngOnChanges won't run, etc. I might rewrite my components to support this better (e.g. using Observables for