1 | // http://briantford.com/blog/huuuuuge-angular-apps.html
|
---|
2 | // http://cliffmeyers.com/blog/2013/4/21/code-organization-angularjs-javascript
|
---|
3 |
|
---|
4 | // Declare all modules and their dependancies
|
---|
5 | angular.module('nzhptApp', ['mobileNav', 'mapModule', 'forms', 'search', 'reusableDirectives', 'vcRecaptcha', 'ngSanitize', 'ngAnimate', 'filters', 'helper'])
|
---|
6 | .constant('_', window._)
|
---|
7 | .run(['$window', '$rootScope', function ($window, $rootScope) {
|
---|
8 | $rootScope._ = window._;
|
---|
9 | $window.FastClick.attach(document.body);
|
---|
10 | }]);
|
---|
11 | angular.module('mobileNav', ['storage']);
|
---|
12 | angular.module('mapModule', ['ui.select2', 'ui.unique', '$strap.directives']);
|
---|
13 | angular.module('forms', []);
|
---|
14 | angular.module('search', ['infinite-scroll', '$strap.directives', 'ui.select2']);
|
---|
15 | angular.module('reusableDirectives', []);
|
---|
16 | angular.module('storage', []);
|
---|
17 | angular.module('filters', []);
|
---|
18 | angular.module('helper', []);
|
---|