How to import moment.js in ES6 using npm? : <p>I am using angular js and nodejs along with ES6. I want to import the moment.js in the angular js code. I did <code>'npm install moment --save'</code></p>

<p>Now I am able to see moment.js file in moment folder which is inside node modules. </p>

<p>and in my app.js file I have wriiten like this</p>

<pre><code>'import moment from 'moment';
</code></pre>

<p>But if search something with date range It is showing error in console. Can anybody help me how to do this..?</p>
