Angular or Angularjs

Asked

Viewed 924 times

-2

I saw some questions here on the site related to this but it was more related to update from one to the other and others were closed...

What are the main differences between the two?

Even being an older version, can Angularjs have minor updates? (I have the impression that during the creation of a project using Angularjs there was an update, but it may have been just impression)

  • This is a question based on opinion. But the angular and the most modern and best technology for new projects, the only Angularjs for legacy projects or teams that do not want to learn the new version.

  • @Eduardovargas why he considers based on opinion?

  • https://pt.meta.stackoverflow.com/questions/486/good-subjective-bad-subjective

  • Could you be more specific? I still see no reason to consider it based on opinion

  • questions of types which framework is the best js? or which is the best angular or React? Or in this case angular vs Angularjs will always be subjective. Because you never know what it’s going to be applied to or the specs of the project. Besides that the questions in the OS are to be considered artifacts to be used by others and as the web world and these freameworks are always changing and impossible to have this kind of answer.

  • Basically the same thing as your question on the https://pt.meta.stackoverflow.com/questions/6891/base-opini%C3%A3o-ou-n%C3%A3o

  • For example I can say that one of the advantages of typescritpt instead of js but you might find it a disadvantage. Or that it uses observables instead of Promises etc but you think Promises better. etc.

  • I do not seek what is the mehlor, but rather its differences, what one has and another, so that I can properly know what is best for each situation. To cite the main differences between them would be subjective?

  • So repeat your question because you asked what would be the advantages and disadvantages And which should use each.

  • @Eduardovargas edited, if you want to add/improve something in the question

  • I prefer Vuejs and AXIOS (CDN) https://br.vuejs.org/ https://github.com/axios/axios

Show 6 more comments

1 answer

1


The main differences are:

  • Angular cli: Although in Angularjs you can generate the project with tools like Yeoman angular 2 has angular-cli which makes it easy not only to have a standard way of generating projects but also any other code using the generate. For example to generate Components, services, etc. Besides being able to compile your code for production or serve it with hot-Reload that makes development much faster.

  • Rxjs: Angular uses rxjs by default to make the data flow through its application. The reactive functional programming style, however complicated at the beginning, allows much more elegant codes and much more control in the data flow of your application.

  • Performance: The angular has "out-of-the-box" a much better performance than the js and also allows several techniques to make the performance even better as AOT or Lazy-loading.

  • Support and new Features: After the release of version 1.7 of Angularjs the team will stop with new Eatures and will only have bugfixes. Thus it will be much more difficult to have a compatibility with new PWA technologies, etc. While the angular is full steam with biannual releases with new technologies and Features and improvements in performance.

Other points: Angular and much easier to test. And also the community is getting faster and faster migrating pro-angled.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.