As a beginner in Angular, I'd greatly appreciate it if you could point out any rookie mistakes I may be making here.
Below is my module and controller structure:
(function () {
'use strict';
angular
.module('myApp')
.controller('myController', MyController);
I've trimmed down the code for brevity, focusing only on the key parts.
The current code functions smoothly - the page loads without any issues.
However, trouble arises when I attempt to inject something into the module:
(function () {
'use strict';
angular
.module('myApp', ['custom'])
.controller('myController', MyController);
Upon doing this, the page fails to load altogether, yet no errors are displayed in the console.
Initially, I suspected that the custom module might not be loading correctly. So, I experimented with the following:
(function () {
'use strict';
angular
.module('myApp', [])
.controller('myController', MyController);
Unfortunately, even this modification does not work. Once again, nothing loads despite seeing similar examples using empty square brackets.
To provide context, I am working with AngularJS version 1.3.16.