angular moments code example Example: angular moment npm install --save moment ... import * as moment from 'moment';