It looks like you did not close the ad controllercorrectly.
In particular, you have: });when you should have }]);. Pay attention to the missing ].
In context, you should have:
var controllers = angular.module('controllers', ['ngGrid', 'ngDialog', 'angularFileUpload']);
controllers.controller('CustomProductsCtrl',
['$scope', '$window', 'ngDialog', 'CommonService',
'CustomProductsServices', '$upload',
function ($scope, $window, ngDialog, CommonService,
CustomProductsServices, $upload){
}]);
. API- API , :
$controller(constructor, locals);
:
module_name.controller( 'your_Ctrl',
[locals, function(){
}
]
);
, ] , .