[Fixes #220] Support `@page` with custom route template on components
* Updates the router component to scan for components within assemblies. * Parses the templates on `[Route]` in component instances and builds a route table that maps paths to components. * Uses the route table to map paths to components.
显示
- samples/StandaloneApp/App.cshtml 1 个添加, 3 个删除samples/StandaloneApp/App.cshtml
- samples/StandaloneApp/Pages/Counter.cshtml 2 个添加, 1 个删除samples/StandaloneApp/Pages/Counter.cshtml
- samples/StandaloneApp/Pages/FetchData.cshtml 2 个添加, 1 个删除samples/StandaloneApp/Pages/FetchData.cshtml
- samples/StandaloneApp/Pages/Index.cshtml 2 个添加, 1 个删除samples/StandaloneApp/Pages/Index.cshtml
- src/Microsoft.AspNetCore.Blazor/Components/ComponentResolver.cs 73 个添加, 0 个删除...crosoft.AspNetCore.Blazor/Components/ComponentResolver.cs
- src/Microsoft.AspNetCore.Blazor/Components/ParameterCollectionExtensions.cs 2 个添加, 1 个删除...etCore.Blazor/Components/ParameterCollectionExtensions.cs
- src/Microsoft.AspNetCore.Blazor/Layouts/LayoutDisplay.cs 18 个添加, 2 个删除src/Microsoft.AspNetCore.Blazor/Layouts/LayoutDisplay.cs
- src/Microsoft.AspNetCore.Blazor/Routing/RouteContext.cs 26 个添加, 0 个删除src/Microsoft.AspNetCore.Blazor/Routing/RouteContext.cs
- src/Microsoft.AspNetCore.Blazor/Routing/RouteEntry.cs 61 个添加, 0 个删除src/Microsoft.AspNetCore.Blazor/Routing/RouteEntry.cs
- src/Microsoft.AspNetCore.Blazor/Routing/RouteTable.cs 130 个添加, 0 个删除src/Microsoft.AspNetCore.Blazor/Routing/RouteTable.cs
- src/Microsoft.AspNetCore.Blazor/Routing/RouteTemplate.cs 21 个添加, 0 个删除src/Microsoft.AspNetCore.Blazor/Routing/RouteTemplate.cs
- src/Microsoft.AspNetCore.Blazor/Routing/Router.cs 18 个添加, 48 个删除src/Microsoft.AspNetCore.Blazor/Routing/Router.cs
- src/Microsoft.AspNetCore.Blazor/Routing/TemplateParser.cs 107 个添加, 0 个删除src/Microsoft.AspNetCore.Blazor/Routing/TemplateParser.cs
- src/Microsoft.AspNetCore.Blazor/Routing/TemplateSegment.cs 34 个添加, 0 个删除src/Microsoft.AspNetCore.Blazor/Routing/TemplateSegment.cs
- test/Microsoft.AspNetCore.Blazor.E2ETest/Tests/RoutingTest.cs 20 个添加, 1 个删除.../Microsoft.AspNetCore.Blazor.E2ETest/Tests/RoutingTest.cs
- test/Microsoft.AspNetCore.Blazor.Test/Routing/RouteTableTests.cs 218 个添加, 0 个删除...crosoft.AspNetCore.Blazor.Test/Routing/RouteTableTests.cs
- test/Microsoft.AspNetCore.Blazor.Test/Routing/TemplateParserTests.cs 198 个添加, 0 个删除...oft.AspNetCore.Blazor.Test/Routing/TemplateParserTests.cs
- test/testapps/BasicTestApp/RouterTest/Default.cshtml 2 个添加, 1 个删除test/testapps/BasicTestApp/RouterTest/Default.cshtml
- test/testapps/BasicTestApp/RouterTest/Links.cshtml 3 个添加, 2 个删除test/testapps/BasicTestApp/RouterTest/Links.cshtml
- test/testapps/BasicTestApp/RouterTest/Other.cshtml 2 个添加, 1 个删除test/testapps/BasicTestApp/RouterTest/Other.cshtml
加载中
想要评论请 注册 或 登录