Why would a JavaScript variable start with a dollar sign?
Solution 1:
Solution 2:
Angular Namespaces $ and $$
To prevent accidental name collisions with your code, Angular prefixes names of public objects with $ and names of private objects with $$,do not use the $ or $$ prefix in our code.