Closed gbrunow closed 3 years ago
Thanks for opening the issue.
I have updated the example to include the inputs passed to a component rendered via a selector.
<app-dynamic-selector *ngIf="showComponent"
[inputs]="{inputValue: 'My Input Value'}"
[componentSelector]="'app-dynamic1'"
[moduleLoaderFunction]="getModuleLoader()"
></app-dynamic-selector>
Commit:
Thanks @tarangkhandelwal! Great job, by the way.
FYI, the stackblitz seems to be broken now.
FYI, the stackblitz seems to be broken now.
I will try to check & fix why this isn't working in stackblitz. But it should work locally.
The article Rendering dynamic components by selector name in Ivy talks about some custom binding functionality provided by the
DynamicSelectorComponent
but the sample component doesn't have any inputs.I've been playing around with the stackblitz and still haven't been able to figure out how to work with inputs.