Whenever I attempt to launch my application, I encounter this particular error.
An issue arises where 'CampaignsSettingsController' is not recognized as a function and is instead undefined.
The controller in question is outlined below:
// Executed Second
var campaignsSettingsModule;
campaignsSettingsModule = angular.module('campaignsSettings');
campaignsSettingsModule.controller(
'CampaignsSettingsController', [
'$scope',
'$window',
'CampaignAdvancedSettings',
function($scope, $window, CampaignAdvancedSettings) {
// relevant controller logic goes here
}
]
);
Furthermore, the campaignSettings
module is invoked as follows:
// Executed first
var modules = ['evApp', 'campaignsSettings'];
for (var i = 0, length = modules.length; i < length; i++) {
angular.module(modules[i], []).config(function($interpolateProvider){
$interpolateProvider.startSymbol('{[').endSymbol(']}');
});
}
The order of execution for these files (not sure if this matters) is noted above each code snippet.
What could be causing this undefined error? Where should I begin troubleshooting to resolve this issue? Despite looking through multiple resources, I am still unable to find a solution.