* @var array|NULL
* Each item has some combination of these keys:
* - ext: string
+ * The Civi extension which defines the Angular module.
* - js: array(string $relativeFilePath)
+ * List of JS files (relative to the extension).
* - css: array(string $relativeFilePath)
+ * List of CSS files (relative to the extension).
* - partials: array(string $relativeFilePath)
+ * A list of partial-HTML folders (relative to the extension).
+ * This will be mapped to "~/moduleName" by crmResource.
*/
protected $modules = NULL;
}
/**
- * Get a list of AngularJS modules which should be autoloaded
+ * Get a list of AngularJS modules which should be autoloaded.
*
* @return array
- * (string $name => array('ext' => string $key, 'js' => array $paths, 'css' => array $paths))
+ * Each item has some combination of these keys:
+ * - ext: string
+ * The Civi extension which defines the Angular module.
+ * - js: array(string $relativeFilePath)
+ * List of JS files (relative to the extension).
+ * - css: array(string $relativeFilePath)
+ * List of CSS files (relative to the extension).
+ * - partials: array(string $relativeFilePath)
+ * A list of partial-HTML folders (relative to the extension).
+ * This will be mapped to "~/moduleName" by crmResource.
*/
public function getModules() {
if ($this->modules === NULL) {
'css' => array('css/angular-crmAttachment.css'),
'partials' => array('partials/crmAttachment'),
);
+ $angularModules['crmAutosave'] = array(
+ 'ext' => 'civicrm',
+ 'js' => array('js/angular-crmAutosave.js'),
+ );
+ //$angularModules['crmExample'] = array(
+ // 'ext' => 'civicrm',
+ // 'js' => array('js/angular-crmExample.js'),
+ // 'partials' => array('partials/crmExample'),
+ //);
$angularModules['crmResource'] = array(
'ext' => 'civicrm',
// 'js' => array('js/angular-crmResource/byModule.js'), // One HTTP request per module.
'ext' => 'civicrm',
'js' => array('bower_components/angular-jquery-dialog-service/dialog-service.js'),
);
- $angularModules['ngSanitize'] = array(
- 'ext' => 'civicrm',
- 'js' => array('js/angular-sanitize.js'),
- );
$angularModules['ui.utils'] = array(
'ext' => 'civicrm',
'js' => array('bower_components/angular-ui-utils/ui-utils.min.js'),
}
return $result;
}
+
}