title: Using moment-duration-format plugin inside Angular controller
body: <p>I'm trying to use the <a href="https://github.com/jsmreese/moment-duration-format" rel="noreferrer">moment-duration-format</a> plugin to format my MomentJS durations. How would I go about using this plugin in my Angular controllers? Seems like it should work out of the box once the JS has been imported, but it's not. </p>
  
  <p>I've imported momentJS and MDF JS file in my index.html: </p>
  
  <pre><code>// MomentJS
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment.min.js"&gt;&lt;/script&gt;
  // moment-duration-format plugin
  &lt;script src="bower_components/moment-duration-format/lib/moment-duration-format.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But when I call the below line in a controller, I get an error: </p>
  
  <pre><code>console.log( moment.duration(123, "minutes").format("h:mm") );
  </code></pre>
  
  <p>Error: </p>
  
  <pre><code>TypeError: moment.duration(...).format is not a function...
  </code></pre>