lacolaco / ng-dynamic

dynamic contents projection in Angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

passing variables

nkholski opened this issue · comments

I hope that you'll find the motivation to continue. I've been using your previous component-outlet library to highlight difficult words in texts and allow them to be clickable for an explanation.

I spent a lot of time trying to get the dynamic-html component to work for me but fail to pass arguments to my component. I want to parse something like this
'A text with words like '
And that my ExplainWordComponent can fetch the word via Input() and build an clickable word from this.

I fail to fetch the passed variable, however. It might be possible by using dynamic component instead, but I read that you plan to remove that.

Is what I try to do possible?