I have added an external js file to my angular14 solution. The JS file has $('.class').click() event. Whenever I run the application in localhost, the browser says $ is not defined. I am new to angular and my question is how can I properly define $?
I tried adding var $ = require('jquery') in the first line of js file but it produces new error saying require is not defined.