How to declare global variables in Blazor , for example I have inputquestions in Index I want to use this in another page called Quiz.
https://github.com/KalyanAllam/MauiAppMCQs/
@page "/"
<h1> Quiz </h1>
Select Input Questions and
Click on Quiz .
<div class="row">
<p>Questions:</p>
<input type="range" min="5" max="20" step="5" @bind="@inputquestions"
@bind:event="oninput" />
</div>
<p>@inputquestions</p>
@code {
public int inputquestions=5;
}