Created
February 20, 2020 11:52
-
-
Save ArtemRomanovsky/39aebdf17b20a67a08514a4d9cb0ab6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class AppComponent { | |
| constructor(private zone: NgZone) { | |
| this.zone.runOutsideAngular(() => { | |
| // run code outside angular change detection | |
| setInterval(() => this.sendStatistics(), 1000); | |
| }); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment