diff --git a/src/assets/angular-material-examples/datepicker-formats/datepicker-formats-example.ts b/src/assets/angular-material-examples/datepicker-formats/datepicker-formats-example.ts index d529f3cc..0af48437 100755 --- a/src/assets/angular-material-examples/datepicker-formats/datepicker-formats-example.ts +++ b/src/assets/angular-material-examples/datepicker-formats/datepicker-formats-example.ts @@ -9,9 +9,10 @@ import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/ // the `default as` syntax. import * as _moment from 'moment'; // tslint:disable-next-line:no-duplicate-imports -import {default as _rollupMoment} from 'moment'; +// import {default as _rollupMoment} from 'moment'; -const moment = _rollupMoment || _moment; +// const moment = _rollupMoment || _moment; +const moment = _moment; // See the Moment.js docs for the meaning of these formats: // https://momentjs.com/docs/#/displaying/format/ diff --git a/src/assets/angular-material-examples/datepicker-moment/datepicker-moment-example.ts b/src/assets/angular-material-examples/datepicker-moment/datepicker-moment-example.ts index 0684b090..8e5bd241 100755 --- a/src/assets/angular-material-examples/datepicker-moment/datepicker-moment-example.ts +++ b/src/assets/angular-material-examples/datepicker-moment/datepicker-moment-example.ts @@ -9,9 +9,10 @@ import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE} from '@angular/material/ // the `default as` syntax. import * as _moment from 'moment'; // tslint:disable-next-line:no-duplicate-imports -import {default as _rollupMoment} from 'moment'; +// import {default as _rollupMoment} from 'moment'; -const moment = _rollupMoment || _moment; +// const moment = _rollupMoment || _moment; +const moment = _moment; /** @title Datepicker that uses Moment.js dates */ @Component({ diff --git a/src/assets/angular-material-examples/datepicker-views-selection/datepicker-views-selection-example.ts b/src/assets/angular-material-examples/datepicker-views-selection/datepicker-views-selection-example.ts index 6a233667..f6660671 100755 --- a/src/assets/angular-material-examples/datepicker-views-selection/datepicker-views-selection-example.ts +++ b/src/assets/angular-material-examples/datepicker-views-selection/datepicker-views-selection-example.ts @@ -9,10 +9,12 @@ import {MatDatepicker} from '@angular/material/datepicker'; // syntax. However, rollup creates a synthetic default module and we thus need to import it using // the `default as` syntax. import * as _moment from 'moment'; +import { Moment } from 'moment'; // tslint:disable-next-line:no-duplicate-imports -import {default as _rollupMoment, Moment} from 'moment'; +// import {default as _rollupMoment, Moment} from 'moment'; -const moment = _rollupMoment || _moment; +// const moment = _rollupMoment || _moment; +const moment = _moment; // See the Moment.js docs for the meaning of these formats: // https://momentjs.com/docs/#/displaying/format/