(DISABLE_DOM_EMULATION: boolean = false)
| 22 | * (But won't prevent the monkey patching of DOM apis as this is introduced by the CLI) |
| 23 | */ |
| 24 | const render = (DISABLE_DOM_EMULATION: boolean = false) => { |
| 25 | ɵenableProfiling(); |
| 26 | |
| 27 | let doc: Document | string; |
| 28 | if (DISABLE_DOM_EMULATION) { |
| 29 | doc = document.implementation.createHTMLDocument(''); |
| 30 | doc.body.innerHTML = '<app-root></app-root>'; |
| 31 | } else { |
| 32 | doc = '<html><head></head><body><app-root></app-root></body></html>'; |
| 33 | } |
| 34 | |
| 35 | return renderApplication(bootstrap, { |
| 36 | document: doc, |
| 37 | platformProviders: [{provide: ɵENABLE_DOM_EMULATION, useValue: !DISABLE_DOM_EMULATION}], |
| 38 | }); |
| 39 | }; |
| 40 | |
| 41 | export {render}; |
| 42 |
no test coverage detected
searching dependent graphs…