I understand how angular.module works quite well, but for some reason I can't seem to grasp this concept.
Within my code, I have the following snippet:
var app = angular.module("myApp", [])
app.controller("MainCtrl", ...)
However, my code only functions properly when there is no array for dependent modules, like so:
var app = angular.module("myApp");
app.controller("MainCtrl",...)
I am completely clueless as to what could be causing this issue, considering that I have always understood the necessity of the empty array.