Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save GuillaumeDaviid/ef70b9c91b6d7a086c6dd9830b9f68b7 to your computer and use it in GitHub Desktop.

Select an option

Save GuillaumeDaviid/ef70b9c91b6d7a086c6dd9830b9f68b7 to your computer and use it in GitHub Desktop.
Angular : markforcheck
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