I have 3 modules. The main app module and two directive modules. All modules are dependent on ngAnimate.
How should I best include the ngAnimate?
In the first main app module only, like the code below? Here it looks as they are in one file, but they are really in 3 different files.
angular.module('app', ['ngAnimate','someDirectiveModule','someOtherDirectiveModule']);
angular.module('someDirectiveModule', []);
angular.module('someOtherDirectiveModule', []);
Or separately in each module that is dependent on ngAnimate (which in this case is all modules)? Like this:
angular.module('app', ['ngAnimate','someDirectiveModule','someOtherDirectiveModule']);
angular.module('someDirectiveModule', ['ngAnimate']);
angular.module('someOtherDirectiveModule', ['ngAnimate']);
ngAnimatethrice