Skip to content

Commit

Permalink
Update multiple-modals.md
Browse files Browse the repository at this point in the history
In the file for ModalOne there was a reference to an undefined variable called `ModalService`. Looks like the `IModalService` variable defined as `Modal` should actually be `ModalService`.
  • Loading branch information
zootius authored Mar 18, 2024
1 parent b2d2f22 commit 945a838
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/docs/usage/multiple-modals.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ In the following example, `ModalOne` is displayed from the `Homepage` component.
<button @onclick="ShowModal">Show Modal</button>
@code {
[CascadingParameter] IModalService Modal { get; set; } = default!;
[CascadingParameter] IModalService ModalService { get; set; } = default!;
private void ShowModal() => Modal.Show<ModalOne>("First Modal");
private void ShowModal() => ModalService.Show<ModalOne>("First Modal");
}
```

Expand All @@ -27,7 +27,7 @@ In the following example, `ModalOne` is displayed from the `Homepage` component.
@code {
[CascadingParameter] BlazoredModalInstance ModalOne { get; set; } = default!;
[CascadingParameter] IModalService Modal { get; set; } = default!;
[CascadingParameter] IModalService ModalService { get; set; } = default!;
private async Task ShowModalTwo()
{
Expand All @@ -51,4 +51,4 @@ In the following example, `ModalOne` is displayed from the `Homepage` component.

private async Task Close() => await ModalTwo.CloseAsync();
}
```
```

0 comments on commit 945a838

Please sign in to comment.