DEV Community

Anushil Kumar
Anushil Kumar

Posted on

Use vue component in an existing AngularJs Application

My goal is to migrate my company big application from AngularJs to Vue or React. Whichever is easy. I think Vue will be easier.

Problem 1:
How to make new vue component ( .vue files ) and use it along in existing AngularJs application (with ngRoute) and do all the operations.

Problem 2:
How to change the existing module or feature one by one slowly to vue and finally make a Vue application.

Please help me out with these issues.
I will be very thankful to you.

Top comments (2)

Collapse
 
sduduzog profile image
Sdu

I will also be soon experimenting with something similar. From the top of my head I know that angularjs and vue will not know about eachother but you can start adding vue in html pages of your angular app.

If using something like gulp, you can use a bundler like rollup rollup-plugin-vue.vuejs.org/exampl... to build your single file components into a script witch you can then reference somewhere on your app.

Collapse
 
sudoanushil profile image
Anushil Kumar

Please tell me also if you figure out something.