- class UserContentComponent : Component {
- public override string markup { get; }
- private HttpContext http_context = inject<HttpContext>();
- public async override void handle_action(string action) throws Error {
- this["message"].text_content = http_context.request.query_params.get_any_or_default("message") ?? "No message provided!";
- this["action"].text_content = action;
- }
- }
|