Skip to content

Commit 84ff2e6

Browse files
committed
fix(material/datepicker): make MatDatepickerIntl tree-shakable
In order to be tree-shakable, services must be marked as `providedIn` and they must not be explicitly referenced in the `providers` of an `NgModule`.
1 parent b65f035 commit 84ff2e6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/material/datepicker/datepicker-module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
2222
} from './datepicker';
2323
import {MatDatepickerInput} from './datepicker-input';
24-
import {MatDatepickerIntl} from './datepicker-intl';
2524
import {MatDatepickerToggle, MatDatepickerToggleIcon} from './datepicker-toggle';
2625
import {MatMonthView} from './month-view';
2726
import {MatMultiYearView} from './multi-year-view';
@@ -64,7 +63,6 @@ import {MatYearView} from './year-view';
6463
MatCalendarHeader,
6564
],
6665
providers: [
67-
MatDatepickerIntl,
6866
MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER,
6967
],
7068
entryComponents: [

0 commit comments

Comments
 (0)