Is it a bad practice to use jQuery in Angular?

Davit Karapetyan picture Davit Karapetyan · Nov 29, 2018 · Viewed 9.3k times · Source

My question is the following. Should I avoid using any kind of jQuery code in Angular application as it seems legit to have only one thing interacting with DOM. Another question is if anyone came across problems where he couldn't find any other solution but writing a quick hack with jQuery.

Thank YOU!

Answer

amd picture amd · Nov 29, 2018

Yes it's a bad practice, but sometimes it will save you much time, especially when you are looking for a plugin, Do it when necessary only, and keep a note to switch it back when other solutions are available.