You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Is it possible to change the left and right strings and then call createHtml?
They wont update as createHtml is called inside ngOnInit.
I found a temporary solution by using @ViewChild and creating a simple method based on the code in ngOnInit: changeStrings(left: string, right: string) { this.el.nativeElement.innerHTML = this.createHtml(this.dmp.getDiff(left, right)); }
The text was updated successfully, but these errors were encountered:
Hi,
Is it possible to change the left and right strings and then call createHtml?
They wont update as createHtml is called inside ngOnInit.
I found a temporary solution by using @ViewChild and creating a simple method based on the code in ngOnInit:
changeStrings(left: string, right: string) { this.el.nativeElement.innerHTML = this.createHtml(this.dmp.getDiff(left, right)); }
The text was updated successfully, but these errors were encountered: