Blazor advanced features
This section collects short descriptions of various Blazor advanced features organized in subsections:
- References to components and HTML elements
- JavaScript interoperability
- Globalization and localization
- Authentication and authorization
- Communication with the server
- AOT compilation
Because of a lack of space, we can’t give all the details of each feature, but the details are covered by links in the Further reading section. We start with how to reference components and HTML elements defined in Razor markup.
References to components and HTML elements
Sometimes we might need a reference to a component in order to call some of its methods. This is the case, for instance, for a component that implements a modal window:
<Modal @ref="myModal">
...
</Modal>
...
<button type="button" class="btn btn-primary"
@onclick="() => myModal.Show()"...