Created
June 2, 2024 08:50
-
-
Save GuillaumeDaviid/ef70b9c91b6d7a086c6dd9830b9f68b7 to your computer and use it in GitHub Desktop.
Angular : markforcheck
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
| constructor(private ref: ChangeDetectorRef) { | |
| setInterval(() => { | |
| this.number ++ | |
| this.ref.markForCheck(); | |
| }, 1000) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment