This method checks whether the method call happens within an Angular Zone instance.
()
| 191 | This method checks whether the method call happens within an Angular Zone instance. |
| 192 | */ |
| 193 | static isInAngularZone(): boolean { |
| 194 | // Zone needs to be checked, because this method might be called even when NoopNgZone is used. |
| 195 | return typeof Zone !== 'undefined' && Zone.current.get(isAngularZoneProperty) === true; |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | Assures that the method is called within the Angular Zone, otherwise throws an error. |
no test coverage detected