import moment in component angular 7 code example
Example: moment use in angular
npm install --save moment
import * as moment from 'moment';
...
let myMoment: moment.Moment = moment("someDate");
npm install --save moment
import * as moment from 'moment';
...
let myMoment: moment.Moment = moment("someDate");