Skip to content

Instantly share code, notes, and snippets.

@pankajparkar
Created February 27, 2019 14:03
Show Gist options
  • Save pankajparkar/2b5c84d5686544ac253c798d980b770f to your computer and use it in GitHub Desktop.
Save pankajparkar/2b5c84d5686544ac253c798d980b770f to your computer and use it in GitHub Desktop.
Simplistic tick implementation
tick(): void {
try {
this._views.forEach((view) => view.detectChanges());
if (this._enforceNoNewChanges) {
this._views.forEach((view) => view.checkNoChanges());
}
} catch (e) {
...
} finally {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment