I am new to angular.js
and currently writing my first project.
Currently my controllers look like this, for example:
function MyCtrl($scope, MyService) {
$scope.foo = MyService.doStuff();
}
They work just fine that way (so far), but I browsed the source of another AngularJS application and noticed they're using angular.module to create their controllers.
Why, if at all, would I want to do this in my own application?