Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mounting react component in @angular/router #103

Open
mj-jadhav opened this issue Apr 24, 2019 · 2 comments
Open

Mounting react component in @angular/router #103

mj-jadhav opened this issue Apr 24, 2019 · 2 comments

Comments

@mj-jadhav
Copy link

I want to migrate my angularJS application to react by moving one component at a time. Every component is mounted using angular-router. Can you please share an example on how to import react component in angular-router using react2angular?

@gal1419
Copy link

gal1419 commented May 9, 2019

@mj-jadhav you can use ui-router/react-hybrid to achieve that. It gives you the ability to render both angularjs and React component.

@mj-jadhav
Copy link
Author

@gal1419 I checked that library, but my application is built on @angular/router, so wanted to see if I can easily use react2angular with the existing code(@angular/router). But if it's not possible then I'll have to replace angular-router with ui-router/react-hybrid anyway. I'm keeping this as my last option ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants