()
| 133 | * @publicApi |
| 134 | */ |
| 135 | export function getPlatform(): PlatformRef | null { |
| 136 | if (typeof ngServerMode !== 'undefined' && ngServerMode) { |
| 137 | return null; |
| 138 | } |
| 139 | |
| 140 | return _platformInjector?.get(PlatformRef) ?? null; |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * Destroys the current Angular platform and all Angular applications on the page. |
no test coverage detected