This is in a new blazor project template in visual studio.
Index.razor:
@code
{
bool test = false;
}
Program.cs:
NewProject.Pages.Index.test = true;
This throws "an object reference is required for the non-static field, method, or property "Index.test"". But I'm not sure how to reference NewProject.Pages.Index as an object because I can't find where it is instantiated. How do I get the object reference for the page that blazor displays in the browser?