Summary
In this chapter, we introduced and applied all the concepts related to navigation and routing in a Blazor WebAssembly application. We started first by understanding routing and the Router
component, and then we declared our first component that had a router. After that, we saw how to use the routing abilities in Blazor to transmit data between the pages using route and query string parameters. Then, we learned how to handle the not found UI and designed a simple and neat component for it.
Finally, we saw how we can take action and manipulate the UI when a navigation process happens in an application.
After going through this chapter, you should be able to do the following:
- Create pages in your application and declare routes for them
- Send data between pages using the route and query string parameters
- Provide a custom UI for the not found address
- Take certain actions when a navigation process occurs in the app
In the next chapter, we will start...