Using a directive inside a React component #49
Comments
Hi @marekkalnik Thanks for you question. Do you mean to use an existing angular directive inside a React Component?
Did that answer your question, if not please let me know if I misunderstood you. |
Yes. The idea is to use React but still keep the directives like ui-sref If the only thing we can reuse are services it would mean that some
|
Yeah I can see that it would speed up migration if it was possible. It is as you found out not and I'm not exactly sure it could work. |
@kasperp ok, thank you very much for your anwsers. I think it should be just a bit clearer in the documentation. I'll submit à PR. |
yeah we could improve til docs in this regards. Thanks |
Hi All, |
@monah-abouassi sorry I don't understand your question. |
Hi |
okay the discussion around support directives inside components is on #120, but no nothing have been completed yet. |
Hi,
I'm trying to check if it is possible to use directives inside a react component.
The naive approach (just keeping the directive in the JSX) is obviously not working. So I tried to inject the scope and compile the directive by myself, but it seems that injecting the whole scope is not possible. Do you have any idea if it is doable? If not, I think it would be nice to mention it in the documentation, as it may be an important reason to avoid using React.
The text was updated successfully, but these errors were encountered: