No JS experience. Learning AngularJS
So I've read https://docs.angularjs.org/guide/scope, and I've looked at some stackoverflow.com answers on what the $ is used for in JavaScript. I understand the $ has a specific use in some libraries, like JQuery, and that in newer versions of JavaScript it is just seen as a standard character for variable names. So my question is...
Why is it common in AngularJS to see a scope object with a $ in front of it even though the $ isn't necessary?
An example of an AngularJS scope object without using a $
scope object without $
app.controller('MainController', ['$scope', function(withoutdollarsign){
withoutdollarsign.title = 'string here';
}]);
or scope object with $
app.controller('MainController', ['$scope', function($withdollarsign){
$withdollarsign.title = 'string here';
}]);