What is the advantage of using ANGULAR over JQUERY?

Asked

Viewed 130 times

-2

I know you’re both different. I know that Angular is a Framework and Jquery is a LIB.

But I ask the professionals who deal with both, what is the advantage, what can I do in ANGULAR that I can’t do with JQUERY and receiving the data from the Back? I read and reread some articles and I could not convince myself of Angular, I took a recent mini course of ANGULAR and saw the Qtde of things q have to type, maybe because I’m not used to ANGULAR I see it as a bug of seven heads, where jquery does everything I need and I haven’t found any snarls.

So, colleagues, what do I get with ANGULAR or another Javascript framework that I can’t do with JQUERY? Because I came across a situation in a LARAVEL course that I saw the guy running behind his ass teaching to use ANGULAR which led me to do the course to situate myself, and I saw that I could do what he went through using Jquery with Ajax without major difficulties.

1 answer

2

The main motivation for using frameworks such as Angular, React and Vue is the consistency of the data in single-page application.

Jquery is a compatibility solution between several browsers, which also brings you various methods for handling objects and DOM, which makes your work more practical.

Angular was not exactly done to make your work more practical, but rather to make it safer and more scalable. A simple example: imagine you have several widgets/components and want to bring them all to the same page. If they were not created with the interaction in mind, you may have several problems: global variables overwriting themselves, elements with the same id, queries of one component accidentally searching for elements of another component.

Angular seeks to solve this problem by creating isolated scopes for each component, and changing the way you manipulate the DOM, reducing the risk of generating unexpected interactions.

Browser other questions tagged

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