ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل محمد حسام الدين حسن صدقى , Senior Functional Consultant , Egabi Fsi
تاريخ النشر: 2016/08/05
Kais Hamdulay
من قبل 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
من قبل Brajpal Singh , System Analyst , Ebix Software India (P) Ltd.

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

Fatehi Abdo Thabet
من قبل Fatehi Abdo Thabet , Web Developer , Prodigy Systems

It depends on your knowledge and your gole.

Karan Panchal
من قبل 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
من قبل 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.

المزيد من الأسئلة المماثلة