title: How to call global function from controller class in AngularJs component
body: <p>In app.module.js file, import JS file from external lib</p>
  
  <pre><code>import 'assets/scripts/admin';
  </code></pre>
  
  <p>with global function:</p>
  
  <pre><code>function anonymousAdmin() {
    "use strict";
  
    implementation();
  }
  </code></pre>
  
  <p>Now in app.component.js file have controller with function call:</p>
  
  <pre><code>export const AppComponent = {
    controller: class AppComponent {
      $onInit() {
        /* global anonymousAdmin */
        anonymousAdmin();
      }
    }
  };
  </code></pre>
  
  <p>Run Webpack/Babel to save all files (ES6) into one file (ES5). Unfortunately i have error in console:</p>
  
  <pre><code>ReferenceError: anonymousAdmin is not defined
  </code></pre>
  
  <p>Someone knows how I can call this function in the controller?</p>