pivoting to local yaml files for state

This commit is contained in:
2023-07-18 23:02:48 -06:00
parent d691f817b7
commit 04274bd6c5
15 changed files with 343 additions and 273 deletions

View File

@@ -0,0 +1,21 @@
@using LocalModels
@inject YamlManager yamlManager
@code
{
public IEnumerable<LocalCourse> localCourses { get; set; }
protected override async Task OnInitializedAsync()
{
localCourses = await yamlManager.LoadSavedCourses();
}
}
@if(localCourses != null)
{
<h3>Stored Courses</h3>
@foreach (var course in localCourses)
{
<div>@course.Name</div>
}
}