4
I used some libraries written for Angularjs where Services were always written with a $ at first.
For example, in Angular Material we have the service $mdDialog, and in Angular Bootstrap we have the $uibModal.
Already other libraries I saw that did not use the $. As in the module ngFileUpload, we have the service Upload.
Until then I thought it was mandatory to wear $.
But I wonder if that $ is some standardization or recommendation of Angular.
This is to make a difference between Services and Factory, or something like that?
'Cause it gets prettier.
– Jéf Bueno
Or would it be to use the same name for directive and service? Because using the
$the conflict would be broken, right?– Wallace Maxters
To look like php.
– viana
To look like jQuery.
– Diego Souza
To look like Prototype.
– Guilherme Lautert
You’re not worth a dollar...
– Wallace Maxters