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

Documentation: Update documentation for README.md for Blazor using Dotnet 8 #468

Open
Trubador opened this issue Aug 18, 2024 · 1 comment

Comments

@Trubador
Copy link

The most important thing to remember in any Blazor DotNet 8+ project is setting the <Routes @rendermode="InteractiveServer" />" in App.Razor - Otherwise the canvas will not be responsive at all - It will just render as a static page.

App.Razor

<body>
    <Routes @rendermode="InteractiveServer" />
    <script src="_framework/blazor.web.js"></script>
    <script src="_content/Z.Blazor.Diagrams/script.min.js"></script>
</body>
@cfonseca23
Copy link

thanks for the help. After following all the steps in your documentation and making sure my files were in order, I found that the solution was to add the @rendermode="InteractiveServer"
to App.Razor so that the project would work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants