MCPcopy
hub / github.com/angular/components / provideNativeDateAdapter

Function provideNativeDateAdapter

src/material/core/datetime/index.ts:30–37  ·  view source on GitHub ↗
(
  formats: MatDateFormats = MAT_NATIVE_DATE_FORMATS,
)

Source from the content-addressed store, hash-verified

28export class MatNativeDateModule {}
29
30export function provideNativeDateAdapter(
31 formats: MatDateFormats = MAT_NATIVE_DATE_FORMATS,
32): Provider[] {
33 return [
34 {provide: DateAdapter, useClass: NativeDateAdapter},
35 {provide: MAT_DATE_FORMATS, useValue: formats},
36 ];
37}

Calls

no outgoing calls

Tested by 3

configureTestingModuleFunction · 0.72
createComponentFunction · 0.72
createComponentFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…