mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
bug(ng2-template): fix issue with not disposed boot object
This commit is contained in:
committed by
SteveSandersonMS
parent
58a1aa3538
commit
41d1c14770
@@ -15,7 +15,7 @@ export default function (params: any): Promise<{ html: string, globals?: any }>
|
||||
...ngUniversal.NODE_HTTP_PROVIDERS,
|
||||
];
|
||||
|
||||
return ngUniversal.bootloader({
|
||||
let bootloader = ngUniversal.bootloader({
|
||||
directives: [App],
|
||||
componentProviders: serverBindings,
|
||||
async: true,
|
||||
@@ -23,7 +23,10 @@ export default function (params: any): Promise<{ html: string, globals?: any }>
|
||||
// TODO: Render just the <app> component instead of wrapping it inside an extra HTML document
|
||||
// Waiting on https://github.com/angular/universal/issues/347
|
||||
template: '<!DOCTYPE html>\n<html><head></head><body><app></app></body></html>'
|
||||
}).serializeApplication().then(html => {
|
||||
});
|
||||
|
||||
return bootloader.serializeApplication().then(html => {
|
||||
bootloader.dispose();
|
||||
return { html };
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user