Skip to content

Commit

Permalink
docs: add standalone app example for global ErrorStateMatcher for S…
Browse files Browse the repository at this point in the history
…elect
  • Loading branch information
michael-small committed Jun 9, 2024
1 parent 2fd7350 commit 0e97583
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/material/select/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,19 @@ applies to all inputs. For convenience, `ShowOnDirtyErrorStateMatcher` is availa
globally cause input errors to show when the input is dirty and invalid.

```ts
// NgModule applications
@NgModule({
providers: [
{provide: ErrorStateMatcher, useClass: ShowOnDirtyErrorStateMatcher}
]
})

// Standalone applications
export const appConfig: ApplicationConfig = {
providers: [
{provide: ErrorStateMatcher, useClass: ShowOnDirtyErrorStateMatcher}
]
};
```

### Keyboard interaction
Expand Down

0 comments on commit 0e97583

Please sign in to comment.