Difference between the $ and the double $$ in angularJs

So to prevent the naming collision between the readymade service object and the private service object we generally uses the $$ instead of $.Sometimes some of the properties starts with $$.This means that they are private and we can not modify it. So according to the namespace feasability it is recommended not to create any service that starts from $ or $$


Example : $$state returned from the promise

By Pankaj Kumar Agarwal

Leave a reply:

Site Footer