File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 9
9
import { inject , InjectionToken , LOCALE_ID } from '@angular/core' ;
10
10
import { Observable , Subject } from 'rxjs' ;
11
11
12
-
13
12
/** InjectionToken for datepicker that can be used to override default locale code. */
14
13
export const MAT_DATE_LOCALE = new InjectionToken < string > ( 'MAT_DATE_LOCALE' , {
15
14
providedIn : 'root' ,
16
15
factory : ( ) => inject ( LOCALE_ID )
17
16
} ) ;
18
17
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
+
19
26
/** Adapts type `D` to be usable as a date by cdk-based components that work with dates. */
20
27
export abstract class DateAdapter < D > {
21
28
/** The locale to use for all dates. */
You can’t perform that action at this time.
0 commit comments