How to Install Moment.js in Angular Projects

Peter Elbaum
Jul 1, 2017 · 2 min read
8:42. Includes examples of actually using Moment

1. Install Moment in Your App

npm install moment --save

2. Import Moment in the component TS file where you plan to use it

That’s it!


Peter Elbaum

Written by

Too many interests. Not enough time. Trying to make a go of it. YouTube: https://www.youtube.com/channel/UCPcyffOFc7YGyDgqmvZJs7Q

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade