Enabling routes from multiple assemblies
You might want to modularize your Blazor application by spreading routes across multiple assemblies. Modularization is the practice of breaking down an application into smaller, manageable, and independent modules, each responsible for a specific functionality. It’s an ideal development approach when working in big or distributed teams, as each team can deliver features independently. Modularization is also beneficial in larger applications, as you can encapsulate different features in separate assemblies. Blazor allows you to discover routable components from additional assemblies through the Router
component’s API, for interactive routing, and the endpoint convention builder, for static route setups.
Let’s learn how to allow users to navigate to a component from an assembly different than our base project.
Getting ready
Before we extend assemblies, where Blazor scans for routable components, copy the BlazorCookbook...