@page "/counter"

Counter

Current count: @currentCount

@((MarkupString)_content)
@code { private int currentCount = 0; private void IncrementCount() { currentCount++; } } @code { private AceEditor editor; private string _content = ""; private async Task UpdateContent() { _content = await editor.GetValue(); } private async Task Load() { await editor.SetValue("

Title

"); await editor.SetInfinityMaxLines(); await editor.SetMinLines(10); await editor.SetFontSize(20); await editor.SetLang("html"); await editor.ClearSelection(); } }