aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Having asp.net razor for service side and Blazor on client side on the same views.

Open A51UK opened this issue 8 years ago • 1 comments

The idea is that you could use asp.net razor on service side when making the view but use Blazor to do any change on the clients side, like how with use asp.net razor with JavaScript now. The reason for this is to allow the page to be sent with some data on load and then use Blazor for any update or change after the page been sent.

A example of this would be on a shopping site where the first 10 product would be sent on the page when sent to the user and next load of product would be load on the page by the use of Blazor and Web API. it would be good for SEO as google would be able to see the first 10 product without it need run any Blazor code. In order to do this there would be need a way to say with part of the code is for Blazor and with part for the service side (e.g. razor). This would also allow for a more easy upgrade route for non-Blazor website to be able to use Blazor.

A51UK avatar Sep 14 '18 08:09 A51UK

It's a great idea, and in fact is exactly along the lines of something we're already considering: aspnet/AspNetCore#5464, so I'll close as a duplicate of that. Hope that's OK!

SteveSandersonMS avatar Sep 14 '18 09:09 SteveSandersonMS