-
-
Save explorer14/09961a9127367d9e634d1f30fd08026e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@page "/budget" | |
@*Inject services into views*@ | |
@inject ITraxpenseApiClient traxpenseApi | |
<!--view stuff--> | |
<!-- C# code stuff --> | |
@code { | |
// bind this to the view | |
private CurrentBudget currentBudget; | |
protected override async Task OnInitializedAsync() | |
{ | |
currentBudget = await traxpenseApi.GetCurrentBudget(); | |
} | |
// etc. etc.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment