I am new to angular so please let me know my absolute newbie mistake I am making here.
I have a module and controller as such
(function () {
'use strict';
angular
.module('myApp')
.controller('myController', MyController);
I removed most of the code for brevity, just showing the relevant parts.
This code works perfect, the page loads and everything functions as expected.
However my problem comes when I want to inject something into the module
(function () {
'use strict';
angular
.module('myApp', ['custom'])
.controller('myController', MyController);
When I do this, my page doesn't load at all and I have no errors in the console output.
So I originally thought it was the custom module not loading properly, so I tried this
(function () {
'use strict';
angular
.module('myApp', [])
.controller('myController', MyController);
This doesn't even work, same again in that nothing loads, with empty square brackets, even though I see many examples like this.
I am using AngularJS 1.3.16.
custom?<body ng-app="myApp">