Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing left and right strings? #9

Open
aksellk opened this issue Jul 4, 2017 · 0 comments
Open

Changing left and right strings? #9

aksellk opened this issue Jul 4, 2017 · 0 comments

Comments

@aksellk
Copy link

aksellk commented Jul 4, 2017

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)); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant