Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update multiple-modals.md #571

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
}
```
```
Loading