Skip to content

Commit

Permalink
Apply code fencing to Router element in example (#14954)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex committed Oct 9, 2019
1 parent 91229ed commit 438b739
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion aspnetcore/blazor/routing.md
Expand Up @@ -5,7 +5,7 @@ description: Learn how to route requests in apps and about the NavLink component
monikerRange: '>= aspnetcore-3.0'
ms.author: riande
ms.custom: mvc
ms.date: 09/23/2019
ms.date: 10/09/2019
uid: blazor/routing
---
# ASP.NET Core Blazor routing
Expand Down Expand Up @@ -79,11 +79,13 @@ The content of `<NotFound>` tags can include arbitrary items, such as other inte

Use the `AdditionalAssemblies` parameter to specify additional assemblies for the `Router` component to consider when searching for routable components. Specified assemblies are considered in addition to the `AppAssembly`-specified assembly. In the following example, `Component1` is a routable component defined in a referenced class library. The following `AdditionalAssemblies` example results in routing support for `Component1`:

```cshtml
<Router
AppAssembly="typeof(Program).Assembly"
AdditionalAssemblies="new[] { typeof(Component1).Assembly }>
...
</Router>
```

## Route parameters

Expand Down

0 comments on commit 438b739

Please sign in to comment.