You can create custom pages or components for your Bloqs applications inside the UserInterface Components project. These pages are full Blazor components, meaning you can define routes, inject services, query data, and execute commands just like in any Blazor application.
1. Page Routing
Define a route at the top of your .razor page using the @page directive. Use the following format:
@page"/<your-app-name>/<your-page-name>"
For example, a charts page for sample-app would be:
@page"/sample-app/charts"
2. Injecting Services
You can inject standard Bloqs services as well as your own custom services:
IQueryDispatcher – for querying data
ICommandDispatcher – for executing commands such as create, save, delete, or operations
IRunContext – for retrieving tenant and runtime context information