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