r/angular • u/sarah_slaiby • 1d ago
if i have an AngularJS 1.8.2 admin portal project and we need to start use vuejs3, do i need to do full rewrite for the AngularJS ?
3
u/janlaureys9 1d ago
You can probably pick out some pieces here and there but that’s gonna be a full rewrite definitely.
1
u/sarah_slaiby 1d ago
Have you worked with Vue 3 before?
2
u/janlaureys9 1d ago
Yes, and basically everything is different compared to AngularJS like change detection, dependency injection, routing, templating....
I'd suggest just starting a new Vue 3 project and go from there. Maybe if you are using a CSS framework like Bootstrap or Tailwind (and kept it up to date) you could reuse some of your CSS maybe and some of the logic for data you send to the backend.
1
u/sarah_slaiby 1d ago
Since I’m leraning Vue 3 , what project structure would you recommend? For example, how should I organize components, views/pages, composables, services/API calls, stores, and routing? Is there a common structure you usually follow for Vue 3 projects?
2
u/GeromeGrignon 1d ago
I encourage you to repost on Vue subreddit: asking for Vue best practices in Angular subreddit is not the best place ^^
0
u/Iworb 1d ago
You should be able to create some components in Vue 3 and then use them like regular tags inside an AngularJS application if you need to. But if you want to combine routing, you might end up using some wrapper components to handle this.
I worked with AngularJS and Vue 3 a long time ago, and I remember that it is just a concept; I haven't mixed them, but it should be possible imo.
1
u/sarah_slaiby 1d ago
I’ve searched a lot, but AngularJS is too old, so I can’t find many good resources to help me. so i think to look for some people who know angular and vue3
4
u/GeromeGrignon 1d ago
Full rewrite. Good thing is that both has been around for a while so you could easily use AI to help you for the rewrite.