I'm working on an AngularJS app and just getting started. When I run the app I get in the console
'Argument 'MassPartMaintController' is not a function, got undefined'
Here is what my controller looks like
+function() {
function MassPartMaintController() {
var ctrl = this;
ctrl.uploadSectionTitle = 'Upload';
}
angular.module('MassPartMaint').controller('MassPartMaintController', [MassPartMaintController]);
}();
I copied the structure of the controller from another project that is working, so I can't figure out what the issue is here.
I do find the +function()
syntax weird, but it works fine in other projects. Does anyone have any ideas on what the issue is?