Merge pull request #18959 from seamuslee001/dev_core_2153_2
[civicrm-core.git] / ang / crmUi.ang.php
1 <?php
2 // This file declares an Angular module which can be autoloaded
3 // in CiviCRM. See also:
4 // http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_angularModules
5
6 $isDebug = Civi::settings()->get('debug_enabled');
7
8 return [
9 'ext' => 'civicrm',
10 'js' => ['ang/crmUi.js'],
11 'partials' => ['ang/crmUi'],
12 'requires' => array_merge(
13 [
14 'crmResource',
15 'ui.utils',
16 ],
17 // Only require the +10kb if we're likely to need it.
18 $isDebug ? ['jsonFormatter'] : []
19 ),
20 ];