As the various answers here say, Angular is a framework and JQuery is a library
Let say we need to execute the well known scenario of a UI having the capacity to send a few solicitations to a backend server and shows the outcomes on a website page and the other way around.
Such an utilization case can be actualized effortlessly in both Angular and JQuery. Be that as it may, with Angular there is one major contrast.
It doesn't oblige us to do the back and forth DOM interpretations as opposed to JQuery.
In JQuery the view (ie the HTML DOM elements) and the rationale or conduct which influences those components are coupled and its left to the designer to partitioned them adroitly. In JQuery, if one needs to overhaul a specific DOM component with backend information it must be coded. There is no division as to which is the UI's information and which is the controller of the information.
Thats where Angular becomes an integral factor with its two way information tying, where you could embed name anyplace in your view as long as "name" makes plans to a worth characterized by an "scop" in the controller. The "name" could originate from your backend server, or could be your own particular mockup JSON code. This is a perfect approach to decouple information and the HTML view code.
So this sort of MVC example with two way data binding, likewise builds testability! So it by implication drives you to have the capacity to infuse any mockup JSON information or any server data progressively into your HTML view as long as the model data in the view is rightly rightly updated via the controller.
Angular is a JS framework which use Model/View/Controller idea in the UI and separates the UI information and the UI representation of information. This division is critical on the grounds that it now decouples the information from the visual representation and thats capable would it say it isn't?
The greatest measure of code individuals spend writing in frontend, is the interpretation of data to the DOM and the other way around. Angular totally makes this binding exceptionally consistent subsequently expanding profitability hugely.
Will one not do this in Jquery? Beyond any doubt they can, however it is not inborn to the way of JQuery. In Angular.js, it is inherent to this framework that one must separate the data, view and controller and code appropriately to get the wanted UI.
Aside from this, Angular additionally gets the idea of Single Page Application shrewdly. Angular characterizes something many refer to as Angular Routes utilizing which pages and partitions of pages can be directed.
0 Comment(s)