3

If $ represents built-in service in Angular, what does this $$ prefix mean ? I was just inspecting the scope in Console and saw $$watchers, $$listeners etc

0

1 Answer 1

9

$$ prefix variable are treated as private variable, the reason behind adding $$ before the variable name is, that will avoid the internal variable conflicts and they wouldn't be exposed for external use.

Like in angular you could find many of them, $$observers, $$watchers, $$childHead, $$childTail, $$ChildScope, etc.

Not the answer you're looking for? Browse other questions tagged or ask your own question.