mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Remove obsolete 1.x APIs
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
export default function (params: any): Promise<{ html: string, globals?: any }> {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
// Here, you could put any logic that synchronously or asynchronously prerenders
|
||||
// your SPA components. For example, see the boot-server.ts files in the AngularSpa
|
||||
// and ReactReduxSpa templates for ways to prerender Angular and React components.
|
||||
//
|
||||
// If you wanted, you could use a property on the 'params.data' object to specify
|
||||
// which SPA component or template to render.
|
||||
|
||||
const html = `
|
||||
<h1>Hello</h1>
|
||||
It works! You passed <b>${ JSON.stringify(params.data) }</b>
|
||||
and are currently requesting <b>${ params.location.path }</b>`;
|
||||
resolve({ html });
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user