Blank page after removing asp-prerender #351

Closed
opened 2025-08-09 17:15:57 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @intermension on 10/22/2017

I've seen it mentioned multiple times that "all you have to do" to turn off server side rendering in SPA templates and still have a functional site is to replace

<app asp-prerender-module="ClientApp/dist/main-server">Loading...</app>

with

<app>Loading...</app>

I've done this and it breaks - rendering only a blank page. The page has some markup in it but clearly Angular 2 has not been properly booted.

Is this broken or do we need to do something in addition to removing that attribute?

*Originally created by @intermension on 10/22/2017* I've seen it mentioned multiple times that "all you have to do" to turn off server side rendering in SPA templates and still have a functional site is to replace `<app asp-prerender-module="ClientApp/dist/main-server">Loading...</app>` with `<app>Loading...</app>` I've done this and it breaks - rendering only a blank page. The page has some markup in it but clearly Angular 2 has not been properly booted. Is this broken or do we need to do something in addition to removing that attribute?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#351
No description provided.