File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 99import { inject , InjectionToken , LOCALE_ID } from '@angular/core' ;
1010import { Observable , Subject } from 'rxjs' ;
1111
12-
1312/** InjectionToken for datepicker that can be used to override default locale code. */
1413export const MAT_DATE_LOCALE = new InjectionToken < string > ( 'MAT_DATE_LOCALE' , {
1514 providedIn : 'root' ,
1615 factory : ( ) => inject ( LOCALE_ID )
1716} ) ;
1817
18+ /**
19+ * No longer needed since MAT_DATE_LOCALE has been changed to a scoped injectable.
20+ * If you are importing and providing this in your code you can simply remove it.
21+ * @deprecated
22+ * @deletion -target 7.0.0
23+ */
24+ export const MAT_DATE_LOCALE_PROVIDER = { provide : MAT_DATE_LOCALE , useExisting : LOCALE_ID } ;
25+
1926/** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */
2027export abstract class DateAdapter < D > {
2128 /** The locale to use for all dates. */
You can’t perform that action at this time.
0 commit comments