From 706cd9dcfc354c476f9a22b9ea7b63ea12195939 Mon Sep 17 00:00:00 2001 From: michael-small <33669563+michael-small@users.noreply.github.com> Date: Sun, 9 Jun 2024 12:22:36 -0500 Subject: [PATCH 1/3] docs: provide example for global `ErrorStateMatcher` for standalone apps --- src/material/input/input.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/material/input/input.md b/src/material/input/input.md index bde6aa86ea11..b7b5f9b59f62 100644 --- a/src/material/input/input.md +++ b/src/material/input/input.md @@ -65,11 +65,23 @@ applies to all inputs. For convenience, `ShowOnDirtyErrorStateMatcher` is availa globally cause input errors to show when the input is dirty and invalid. ```ts +// Module applications @NgModule({ providers: [ {provide: ErrorStateMatcher, useClass: ShowOnDirtyErrorStateMatcher} ] }) + +// Standalone applications +export const appConfig: ApplicationConfig = { + providers: [ + {provide: ErrorStateMatcher, useClass: ShowOnDirtyErrorStateMatcher} + ] +}; +``` + +```ts + ``` ### Auto-resizing `