I see in multiple places that functions in AngularJS begin with uppercase (but not always). In JohnPapa's style guide
https://github.com/johnpapa/angularjs-styleguide#named-vs-anonymous-functions
he shows the following. What I don't get is why Dashboard starts with uppercase and logger is lowercase. shouldn't those be the same?
/* recommended */
// dashboard.js
angular
.module('app')
.controller('Dashboard', Dashboard);
function Dashboard() { }
// logger.js
angular
.module('app')
.factory('logger', logger);
function logger() { }