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

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

متابعة

Is it a good or bad practice to use AngularJS together with jQuery?

user-image
تم إضافة السؤال من قبل MD Maruf Billah , Mis Specialist , CARE Bangladesh
تاريخ النشر: 2017/07/29
Sinthujan Pakkiyarajah
من قبل Sinthujan Pakkiyarajah , Senior Front End Developer , S60 Enterprises Ltd

There is no any problem with each other but I would like to add something in, never mess with dom using JQuery which is being used by AnuglarJS. In Jquery manipulatinng the DOM is fine. But in Angular it is always better to allow the angular to render the DOM by modifying the model.

Bharpur Kour
من قبل Bharpur Kour , Assistant Professor , Mentor- P.k Bishnoi

No, it is not a good idea. You are using jQuery coding practices in an Angular app and this will cause you headaches - for once because those practices go against the Angular spirit, and also because you won't reap the benefits of Angular.

Neeraj Neeraj
من قبل Neeraj Neeraj , Software Engineer , Carefusion

No, If you are using AngularJs then it is a bad practice to use Jquery try to find the solution in Angular Itself

مستخدم محذوف‎
من قبل مستخدم محذوف‎

First of all clear your concept that both jQuery and Angular are the subset of javaScript. And jQuery provides you small easy functions for effects whereas Angular in a complete javaScript MVC framework.

To put it more simple Angular built full working site whereas jQuery plays a part in it just by applying animations, functionalities and validations. that all I hope you understand

مستخدم محذوف‎
من قبل مستخدم محذوف‎

Its a Bad Practice, because angular js supports full fledged development of jquery

Neville D'souza
من قبل Neville D'souza , Contractor , BNP Paribas India Solutions

No. Angular supports all the functionality which is provided by JQuery.

However, we there is not restriction on using JQUERY and we can use JQUERY without breaking angular code but not advisable.

Jamsheed Bp
من قبل Jamsheed Bp , Senior Software Engineer , BNC Networks

Its a bad practice. But most of the case its unavoidable.

Mustafa Mohammed Ameen alKubasiy
من قبل Mustafa Mohammed Ameen alKubasiy , web design , Options

there is no necessary 'good' or 'bad' answer , it depends what you want.

if you choose AngularJS , you should follow AngularJS' concept & Design 

AngularJS will meet almost yuor requirment

Sanjog Subedi
من قبل Sanjog Subedi

As we can do everything using angular Js that can be done using jQuery, it's better not to use jQuery. But of course, technically, it is possible to use jQuery along with angular js though. Angular Js offer MVC based complete framework and jquery is just a library of functions. I think it does not makes any sense to use jquery together with angular Js

Sabitha Ahammed jaleel
من قبل Sabitha Ahammed jaleel , Full Stack Software Engineer , Dubai Airports (Client of NIIT Technologies)

If we choose AngularJS, we should follow AngularJS's concept & design, AngularJS will meet almost ourrequirments.

However, we can use jQuery to do some work conveniently without breaking AngulaJS's design.

my principle, avoid jquery if AngularJs works, use jquery only when necessary

Mo'men Mohamed
من قبل Mo'men Mohamed , Senior Frontend & WordPress Developer - Remotely , TheCodeFactory

JQuery is unnecessary in this scenario and using it is a really bad way to get started with AngularJS. If you are going to use a framework then it is best to commit to using it properly. An hour or 2 studying a getting started guide will save you a lot of pain later.

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