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

Function setLocale

src/material/core/datetime/date-adapter.ts:282–285  ·  view source on GitHub ↗

* Sets the locale used for all dates. * @param locale The new locale.

(locale: L)

Source from the content-addressed store, hash-verified

280 * @param locale The new locale.
281 */
282 setLocale(locale: L) {
283 this.locale = locale;
284 this._localeChanges.next();
285 }
286
287 /**
288 * Compares two dates.

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected