title: moment is giving me error in angular 5 html template
body: <p>I am using moment v2.22.0 in angular 5, and this is how I have imported it in module -</p>
  
  <pre><code>import * as moment from 'moment';
  </code></pre>
  
  <p>and using it in component as -</p>
  
  <pre><code>export class ChatComponent {
    .
    .
    .
    public moment: any = moment;
    .
    .
  }
  </code></pre>
  
  <p>and when I am using it in html template -</p>
  
  <pre><code>&lt;div&gt;{{moment(activeTeam.createdAt).format('LL')}}&lt;/div&gt;
  </code></pre>
  
  <p>it is giving me an error message that -</p>
  
  <pre><code>[Angular] Member 'moment' is not callable
  </code></pre>
  
  <p>can anyone tell me what I am doing wrong !!</p>