As per AngularJS's tutorial, the controller function is said to reside within the global scope.
http://docs.angularjs.org/tutorial/step_04
Are the controller functions themselves automatically encapsulated in a scope, or do they actually exist within the global scope? Even though they receive a reference to their own $scope, it seems like the functions are just floating around in the global scope. This setup can potentially lead to issues later on, and my experience and learning have taught me the importance of encapsulation. Moreover, if the functions do live in the global scope, wouldn't it be more advisable to wrap them within an object for easy referencing like this:
Object.functionName();
Instead of this:
functionName();
This approach helps prevent problems related to global scope pollution such as function overrides, etc.