title: How to use moment.js library in angular 2 typescript app?
body: <p>I tried to use it with typescript bindings:</p>
  
  <pre><code>npm install moment --save
  typings install moment --ambient -- save
  </code></pre>
  
  <p>test.ts:</p>
  
  <pre><code>import {moment} from 'moment/moment';
  </code></pre>
  
  <p>And without:</p>
  
  <pre><code>npm install moment --save
  </code></pre>
  
  <p>test.ts:</p>
  
  <pre><code>var moment = require('moment/moment');
  </code></pre>
  
  <p>But when I call moment.format(), I get an error.
  Should be simple, can anybody provide a command line/import combination that would work?</p>