Hey guys,
After reading about best practices and ng-boilerplate I have decided to
change my project structure to something more oriented to modules so I have
now many different ones (I guess I was sold by the idea of having different
components you can reuse among different projects). Anyway after i made
this separation of code I am getting now the following exception:
1. Uncaught TypeError: Cannot read property 'apply' of undefined from
mixJsApp.main angular.js:2914
1. (anonymous function)angular.js:2914
2. forEach
This just happens with the modules that have directives in. Not very sure
what I m missing here. This is my main module configuration:
angular.module('mixJsApp', [
'mixJsApp.domain',
'mixJsApp.services',
'mixJsApp.administration',
'mixJsApp.dashboard',
'mixJsApp.trading',
'mixJsApp.reports',
'mixJsApp.research',
//The following 4 are the ones that have directives and are the ones that
give me the exception. (No matter what order I use)
'mixJsApp.main'
'mixJsApp.currency',
'mixJsApp.market',
'mixJsApp.commissions'
])
.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common['X-Requested-With'];
}]);
Please any help would be appreciated
Luis
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.