I'm pretty clear on how angular.module works, but this eludes me for whatever reason.
In my code I have the following
var app = angular.module("myApp", [])
app.controller("MainCtrl", ...)
but my code only works when there is no array for dependent modules, like this:
var app = angular.module("myApp");
app.controller("MainCtrl",...)
I haven't the slightest the clue as to what would cause the problem, as I've always understood the need for the empty array.