When using a module, avoid using a variable and instead use chaining with the getter syntax. It produces readable code and avoids variable collisions or leaks.
app.controller('MyController', function () {
// ...
});
angular.module('myModule').controller('MyController', function () {
// ...
});