Created
February 20, 2020 11:53
-
-
Save ArtemRomanovsky/9b126d57103f00326b93f860449a803e 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 ChildComponent implements OnChanges { | |
| constructor(public cd: ChangeDetectorRef) { | |
| this.cd.detach(); | |
| } | |
| ngOnChanges(values) { | |
| this.cd.reattach(); | |
| setTimeout(() => { | |
| this.cd.detach(); | |
| }) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment