diff --git a/docs/docs/usage/multiple-modals.md b/docs/docs/usage/multiple-modals.md index 60bc7571..76120822 100644 --- a/docs/docs/usage/multiple-modals.md +++ b/docs/docs/usage/multiple-modals.md @@ -11,9 +11,9 @@ In the following example, `ModalOne` is displayed from the `Homepage` component. @code { - [CascadingParameter] IModalService Modal { get; set; } = default!; + [CascadingParameter] IModalService ModalService { get; set; } = default!; - private void ShowModal() => Modal.Show("First Modal"); + private void ShowModal() => ModalService.Show("First Modal"); } ``` @@ -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() { @@ -51,4 +51,4 @@ In the following example, `ModalOne` is displayed from the `Homepage` component. private async Task Close() => await ModalTwo.CloseAsync(); } -``` \ No newline at end of file +```