blazor component return value code example
Example 1: how to pass property between blazor components
@page "/page2"
@inject Services.AppData AppData
Example 2: how to pass property between blazor components
@page "/"
@inject Services.AppData AppData
Example 3: how to pass property between blazor components
@page "/page2"
@inject Services.AppData AppData
<h1>Second Page</h1>
<p>You entered the number @AppData.Age.</p>