I've been learning Angular and now I'm trying to understand a large piece of code that was given me, and it has a lot of $()
in the code containing a variable inside and a method call $(variable_name).method()
or even a CSS class inside, between double quotes $(".class_name").method()
.
I understand $scope
well, but I get confused with the syntax I explained above. Can someone explain what is it? Thanks in advance. /Teo
P.S.: The code is a directive, so I assume JS don't have this syntax except for the Angular framework.