Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

In a web page, is it better to call restful webservice using AngularJs or using JQuery? and Why?

user-image
Question ajoutée par محمد حسام الدين حسن صدقى , Senior Functional Consultant , Egabi Fsi
Date de publication: 2016/08/05
Kais Hamdulay
par Kais Hamdulay , Technical Lead , Barclays

Depends upon what you are using to call webservice.

if you are using angular you will $http else you will use the jquery way to cal webservice.

Bot have their own way of parsing objects.

Both can be used with promise depending upon what need to be done when a response comes back from webservice.

Java and JavaScript are entirely different not he same. but it may help you to workout for advanced as complex calculations and responsive designs

Brajpal Singh
par Brajpal Singh , System Analyst , Ebix Software India (P) Ltd.

That will depends upon what you are using to call webservice.

Fatehi Abdo Thabet
par Fatehi Abdo Thabet , Web Developer , Prodigy Systems

It depends on your knowledge and your gole.

Karan Panchal
par Karan Panchal , Senior Software Developer , Valuemoves Pvt. Ltd.

There is difference in calling web service using either of it. Angularjs would be my preference as coding is quite maintainable as it supports mvc pattern and service methods, controller, directive etc can be create using separate js file and hence coding is not bulky.

ajumal ashraf
par ajumal ashraf , Dealer , Caterpillar India Engineering Solutions Pvt. Ltd

Both Angular and Juery use very optimised methods to make XHR calls. Here, "Better" needs a context. Are you talking about the ease of development? Or Better functionality like speed and error handling. If its functionality, both work the same way at the Javascript layer and there is no difference in speed. If its regarding better looking code and easily maintainable code, then I should root for AngularJS with its vast number or Service and Promises usage.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?