()
| 93 | export class ServerModule {} |
| 94 | |
| 95 | function _document() { |
| 96 | const injector = inject(Injector); |
| 97 | const config: PlatformConfig | null = injector.get(INITIAL_CONFIG, null); |
| 98 | const _enableDomEmulation = enableDomEmulation(injector); |
| 99 | let document: Document; |
| 100 | if (config && config.document) { |
| 101 | document = |
| 102 | typeof config.document === 'string' |
| 103 | ? _enableDomEmulation |
| 104 | ? parseDocument( |
| 105 | config.document, |
| 106 | config.url !== undefined |
| 107 | ? resolveUrl(config.url, 'http://localhost').href |
| 108 | : undefined, |
| 109 | ) |
| 110 | : window.document |
| 111 | : config.document; |
| 112 | } else { |
| 113 | document = getDOM().createHtmlDocument(); |
| 114 | } |
| 115 | // Tell ivy about the global document |
| 116 | ɵsetDocument(document); |
| 117 | return document; |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Creates a server-side instance of an Angular platform. |
nothing calls this directly
no test coverage detected
searching dependent graphs…