Is it hard to migrate AngularJS applications to Angular? [duplicate] - angularjs

This question already has answers here:
Migrating AngularJS to Angular 4,5 (with DEMO) [closed]
(1 answer)
Running Angular and AngularJS frameworks side by side
(1 answer)
Closed 4 years ago.
I made a small application in AngularJS and want to migrate it to Angular if possible. What is the best tool I can use to do that? Or if there isn't any tool for that, how should I do that?

it really depends to the "original" app.
Here is the link to the official documentation.
By design you have 100% breaking changes, you have to re-write almost everything.
I never tried that but we have an application in my company that is still on AngularJS. We estimated that re-writing it from scratch in Angular (v6 for instance) would cost less than porting the original one.

Related

Is there a way to develop Angular 6 and AngularJS1.6 applications at same machine? [duplicate]

This question already has an answer here:
Running Angular and AngularJS frameworks side by side
(1 answer)
Closed 4 years ago.
I try to find a way to develop both Angular 6 app and AngularJS 1.6 app at same machine.
Here are my situation. I need work on 2 projects, one is brand new one that will use Angular 6 and Angular material design. another project is an old project that I just took over and it's using AngularJS 1.6. Is that possible I can develop both apps on my work laptop or I have to use Virtual machine for one of the apps? I really appreciate your help.
They are clearly different frameworks. You can probably go without issues on the same machine.
The trick if you get into trouble for some common node_modules dependencies, is to use local packages, not global ones. But this should already be the default behavior for the dependencies.
What would require a bit more careful setup is if you need to develop both on Angular 2 and Angular 7 for instance, if you installed some of the libraries globally (which is probably the case if you use angular-cli).
Even though, it's achievable anyway : https://blog.angularindepth.com/angular-5-or-angular-6-yes-please-d71b08b5e59b

Is it possible to run angular 1.x and Angular 5 simultaneously? [duplicate]

This question already has an answer here:
Running Angular and AngularJS frameworks side by side
(1 answer)
Closed 4 years ago.
Is it possible to run Angular 1.x and Angular 5 simultaneously?
https://angular.io/guide/upgrade
Yes, it's possible, with some work. I would assume you would have to have Angularjs 1.5 or higher for this to work successfully though. I'm also assuming that the reason you want to do this is to try and maintain some kind of backward compatibility? Otherwise you would just migrate to a newer version of Angular.
Here is an example running a hybrid app with Angularjs and Angurlar2, but I would think you could do the same in Angular 5 as well. Configuration Tips to build Hybrid Angular 1 and Angular 2 project in real world

Is it possible to add both Angularjs 1.6.x and angular 2 statements in a single .js file? [duplicate]

This question already has an answer here:
Running Angular and AngularJS frameworks side by side
(1 answer)
Closed 5 years ago.
I have been trying to come up with some ideas of getting angularjs and angular 2 versions to combine in a single JS file.
Is it possible , if so kindly provide me a solution to execute that ?
Assuming you are already have an AngularJS codebase, you can use ng-forward / ng-upgrade to start writing Angular like code which will make upgrading a lot easier.
The github is here https://github.com/ngUpgraders/ng-forward
If you are starting a new project definitely just use Angular and skip AngularJS entirely.

Angular 2 or 4 or 5 [duplicate]

This question already has answers here:
What is Angular 4 and from where I can learn more about it?
(6 answers)
Closed 5 years ago.
I am posting this question to get some opinion from fellow developers on which version of Angular to start to learn when migrating from AngularJS to Angular.
I have been working with AngularJS 1.3.7. I have realized that AngularJS 1 is pretty old now and there have been more than significant changes in Angular 2 and higher versions. Also Angular 5 just come out.
I have plans of learning Angular and currently confused with which version to start. I am assuming that Angular 2 is currently trending in market now followed by Angular 4(I might be wrong though).
Should I take a sequential approach and start from Angular 2 and then higher versions or is is safe to jump directly to Angular 4 or 5 without having any Angular 2 knowledge ? Or probably my question should be, can I learn Angular 4+ directly without have any prior knowledge of Angular 2 ?
A lot of companies that have now been using AngularJS for years are still using it, and don't have immediate plans to migrate to 2+. So there's marketability, plus the inevitable requirement of knowing both as an Angular developer.
I know my question is broad and might get some downvotes and red flags, but I am curious to hear from folks who have experienced the transition from 2 to 4+.
Also, I wanted to know about the key differences between AngularJS 1 and Angular 2+. Are they completely different, or will some of the knowledge transfer?
And lastly, I would like to know some of the good resources/tutorial to learn Angular.
They are basically the same. The Angular project moved to Semantic Versioning, which means every breaking change results in the major version to be increased.
Angular 5 is just a newer version of Angular2.
Just use the newest.
http://angularjs.blogspot.co.at/2016/10/versioning-and-releasing-angular.html?m=1
You should use the newest version of Angular for new projects and for learning.
Difference between versions
The difference between Angular v1 and Angular v2/3/4/5+ is drastic, as the platform was completely rewritten in TypeScript, and with different conventions.
The difference between Angular v2/3/4/5+ is simply that breaking changes were released between each major revision; however, they're still the same platform and tutorials / documentation will generally remain applicable between these 4 versions.
Semantic Versioning
Angular now follows the semantic versioning scheme. Patch releases (e.g. 5.0.X) will not change the functionality, minor releases (e.g. 5.X.0) will contain only additive changes, and breaking changes (e.g. X.0.0) are reserved for major releases.
Originally, the rewrite of AngularJS was called "Angular 2" by the team, but this led to confusion among developers. To clarify, the team announced that separate terms should be used for each framework with "AngularJS" referring to the 1.X versions and "Angular" without the "JS" referring to versions 2 and up.

Ionic framework + Google material design, which framework to use? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I really want to use Ionic Material Design into my app. I am currently using Ionic Material: http://ionicmaterial.com/
It is really easy to use and it work great sometime but not the others. It is little bit buggy on the actual devices and it is NOT PRODUCTION ready (and I am using it on a production app...)
I heard someone has success with Ionic Material - http://materializecss.com/
But is this play well with Ionic? I heard it need jQuery. Does jQuery play well with Ionic? (never combine these 2 together...since jQuery is evil and why we use Ioinc + AngularJS the first place...correct me if I am wrong of this opinion...)
And there is other option out there. And I heard a lots of painful stories Angular Material with Ionic...anyone agree?
I just want to find the best framework before I dive myself into modification. I will start a poll if I can!
I haven't used the Ionic Material tool much, but agree it is primarily a fun dev tool and not ready for production (not that it might be eventually, but its certainly not as field tested as Ionic itself).
Can Ionic and jQuery work together? Sure. Its really can Angular and jQuery work together, since Ionic leverages Angular. Its common to use jQuery with Angular (Angular itself uses a subset of jQuery already, and will use the entire jQuery version if it is found on the page.) jQuery is not evil, the prolific use of jQuery for simple things that can be done without jQuery is what people often refer to as 'evil'. Think of it like loading jQuery just to use it for 5 lines of JavaScript that could have been written without jQuery to begin with.
You can also look at Angular Material (https://material.angularjs.org) for a Google backed project that was actually built with help from the Ionic team. However, it is not Ionic and not finished either. I use it in my projects though haven't used it much on mobile yet (it is designed to meet Material Design spec, which is designed for all platforms).
Lastly, you could just use Ionic. There are some customizations you can make, and I don't know what your vision is exactly, but I think it is the most robust option for hybrid apps today.
I'm using materializecss without any problems. jQuery is mandatory but I did not have any problems with it. I also tried muicss but I had some issues on the iPhone 6 with the button animation.

Resources