Moving Angular extension into /ang/
Here's the detailed steps I took to move the angular extension from an extension and into core.


if your angular files are not already name spaced, they should be changed.  In the angularextension there should be a folder in ang/ named something similar to the module. Namespace this folder to crmModuleName. Outside of the crmModule folder, but inside the ang folder should be your css and the file that creates the module and has the router in it. Namespace these files to crmModuleName.css and crmModulename.js. 
Move the crmModulename folder and files to the ang/ folder in CiviCRM core. It should mimic the directory structure of your extension.
There should be a file in the ang/ folder in your extension that is modulename.ang.php - it should have an array that points to where the files in your extension are located:

&lt;?php
return array(
  'js' =&gt; array(
    0 =&gt; 'ang/crmModuleName.js',
    1 =&gt; 'ang/crmModuleName/*.js',
    2 =&gt; 'ang/crmModuleName/*/*.js',
  ),
  'css' =&gt; array(
    0 =&gt; 'ang/crmModuleName.css',
  ),
  'partials' =&gt; array(
    0 =&gt; 'ang/crmModuleName',
  ),
  'settings' =&gt; array(),
);

Find the file Civi/Angular/Manage.php. Within the public function getModules put the information from modulename.ang.php. It should look like this:

$angularModules['modulename'] = array(
  'ext' =&gt; 'civicrm',
  'js' =&gt; array('ang/crmModuleName.js', 'ang/crmModuleName/*.js'),
  'css' =&gt; array('ang/crmModuleName.css'),
  'partials' =&gt; array('ang/crmModuleName'),
  'settings' =&gt; array(),
);