{"action":"created","issue":{"url":"https://api.github.com/repos/davidchang/ngReact/issues/49","labels_url":"https://api.github.com/repos/davidchang/ngReact/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/davidchang/ngReact/issues/49/comments","events_url":"https://api.github.com/repos/davidchang/ngReact/issues/49/events","html_url":"https://github.com/davidchang/ngReact/issues/49","id":59530673,"number":49,"title":"Using a directive inside a React component","user":{"login":"marekkalnik","id":548629,"avatar_url":"https://avatars.githubusercontent.com/u/548629?v=3","gravatar_id":"","url":"https://api.github.com/users/marekkalnik","html_url":"https://github.com/marekkalnik","followers_url":"https://api.github.com/users/marekkalnik/followers","following_url":"https://api.github.com/users/marekkalnik/following{/other_user}","gists_url":"https://api.github.com/users/marekkalnik/gists{/gist_id}","starred_url":"https://api.github.com/users/marekkalnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekkalnik/subscriptions","organizations_url":"https://api.github.com/users/marekkalnik/orgs","repos_url":"https://api.github.com/users/marekkalnik/repos","events_url":"https://api.github.com/users/marekkalnik/events{/privacy}","received_events_url":"https://api.github.com/users/marekkalnik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-02T19:12:17Z","updated_at":"2015-03-03T15:54:27Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to check if it is possible to use directives inside a react component.\r\n\r\nThe 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."},"comment":{"url":"https://api.github.com/repos/davidchang/ngReact/issues/comments/76972128","html_url":"https://github.com/davidchang/ngReact/issues/49#issuecomment-76972128","issue_url":"https://api.github.com/repos/davidchang/ngReact/issues/49","id":76972128,"user":{"login":"kasperp","id":481303,"avatar_url":"https://avatars.githubusercontent.com/u/481303?v=3","gravatar_id":"","url":"https://api.github.com/users/kasperp","html_url":"https://github.com/kasperp","followers_url":"https://api.github.com/users/kasperp/followers","following_url":"https://api.github.com/users/kasperp/following{/other_user}","gists_url":"https://api.github.com/users/kasperp/gists{/gist_id}","starred_url":"https://api.github.com/users/kasperp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasperp/subscriptions","organizations_url":"https://api.github.com/users/kasperp/orgs","repos_url":"https://api.github.com/users/kasperp/repos","events_url":"https://api.github.com/users/kasperp/events{/privacy}","received_events_url":"https://api.github.com/users/kasperp/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T15:54:27Z","updated_at":"2015-03-03T15:54:27Z","body":"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.   "}}