MCPcopy Create free account
hub / github.com/angular/components / missingAdapterError

Function missingAdapterError

src/material/timepicker/util.ts:114–120  ·  view source on GitHub ↗
(provider: string)

Source from the content-addressed store, hash-verified

112 formats: MatDateFormats | null,
113) {
114 function missingAdapterError(provider: string) {
115 return Error(
116 `MatTimepicker: No provider found for ${provider}. You must add one of the following ` +
117 `to your app config: provideNativeDateAdapter, provideDateFnsAdapter, ` +
118 `provideLuxonDateAdapter, provideMomentDateAdapter, or provide a custom implementation.`,
119 );
120 }
121
122 if (!adapter) {
123 throw missingAdapterError('DateAdapter');

Callers 1

validateAdapterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected