Created
September 18, 2019 20:25
-
-
Save ronnyek/094bc6a73142ce335f8d20b8d5e4e257 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 SomeComponent { | |
| property: string; | |
| ... | |
| someMethod(){ | |
| this.property = 'new value'; | |
| this.cdr.markForCheck(); | |
| } | |
| constructor(private cdr: ChangeDetectorRef){ } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment