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

Replaces BlazoredModal component with CascadingBlazoredModal #192

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

chrissainty
Copy link
Member

This PR introduces a new CascadingBlazoredModal component which replaces the BlazoredModal component which was added to the MainLayout component.

CascadingBlazoredModal Wraps the Router in a similar fashion to the CascadingAuthenticationState component and provides the IModalService as a cascading value.

<CascadingBlazoredModal>
    <Router AppAssembly="typeof(Program).Assembly">
        <Found Context="routeData">
            <RouteView RouteData="routeData" DefaultLayout="typeof(MainLayout)" />
        </Found>
        <NotFound>
            <h1>Page not found</h1>
            <p>Sorry, but there's nothing here!</p>
        </NotFound>
    </Router>
</CascadingBlazoredModal>

Resolves #173

@chrissainty chrissainty added the Feature New feature that will be added to the project label Jul 13, 2020
@chrissainty chrissainty merged commit f82618a into main Jul 13, 2020
@chrissainty chrissainty deleted the 173-add-modalservice-as-cascading-value branch July 13, 2020 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature that will be added to the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Offer Modal Service as a cascading value rather than requiring injection
1 participant