ngx-text-diff
ngx-text-diff copied to clipboard
Improve way observable works
trafficstars
I think the usage of the observable is confusing.
- Why do I have to pass in left and right AND an observable? I should have the option to just pass in an observable or just left/right
- I think that the properties on the observable should be consistent with the other properties (e.x. rename
leftContenttoleft) - Is the observable the only way to get a render update if the data changes? If so, this should be called out in the documentation.
- Also, it might be useful for me to just update the
@Input()and if left or right changes, then it should trigger a re-comparison (e.x. listen tongOnChanges())
- Also, it might be useful for me to just update the
Changing input parameters doesn't change the comparison. How do I manually trigger change.