title: Angular 1.5.0-beta.0: angular.module(...).component is not a function
body: <p>I'm trying to use <code>Angular 1.5.0-beta.0</code> which I have installed from <code>npm</code>. </p>
  
  <p>According to <a href="http://toddmotto.com/exploring-the-angular-1-5-component-method/" rel="noreferrer">some guides</a> - we can now create a component using <code>module.component</code> instead of the old fashion <code>module.directive</code>.</p>
  
  <p>This is the component code:</p>
  
  <pre><code> export default angular.module('app.components.header', [])
    .component('dashboardHeader', {
        controller: 'HeaderCtrl as headerCtrl',
        template:  `This is test.`
    })
  
  ;
  </code></pre>
  
  <p>My html is:</p>
  
  <pre><code>&lt;body&gt;
      &lt;dashboard-header&gt;&lt;/dashboard-header&gt;
      &lt;div ui-view="content"&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I'm getting:</p>
  
  <pre><code>angular.module(...).component is not a function
  </code></pre>
  
  <p>What could be the problem?</p>