What advantages does Angular 4 have over AngularJs 1.6?

2

I work with angular JS 1.6 and I am studying angular4, I know that as all language and technology constantly goes through a process of evolution, but does that angular changes have it recommended for all angled projects?

    
asked by anonymous 27.10.2017 / 23:47

1 answer

4

Angular 2/4 is completely different from Angularjs, Agular 4 is component-oriented and is completely modularized making it easy to change only where you want, if you want to change the login you can edit only the login, Angular 4 is done with all that is newest in the market it uses ECS05, ECS06, typeScript, a packet manager the Angular-cli (like java maven), the way Angular 4 controls its non-polluting directives so much the DOM does with that it has a better performance than its first version.

Because Angular-2 needs Node.js to work, it needs to be placed all its library and not a link in the head as it was before the learning curve of angularjs is much smaller and contains some more pipes in it were removed from angular 2 by the development team for performace.

Angular-2 route control is simpler and more robust with routes, daughter routes and route guards.

Answering your question - it is highly recommended that it be updated to the new version if you think from a single point of view, yes, it should be updated, but it is going to really use all the new things that have been released in its new version since updating for upgrade would not be worth the cost of implementing and refactoring code

    
07.11.2017 / 14:03