ngx-text-diff
ngx-text-diff copied to clipboard
`hideMatchingLines` attribute doesn't work
When passing hideMatchingLines=true
, the unmatched lines still show.
Example
<td-ngx-text-diff [left]="leftText" [right]="rightText" [hideMatchingLines]="true"></td-ngx-text-diff>
Cause
The @Input()
should be on the setter, not the getter.
@Input()
get hideMatchingLines() {
return this._hideMatchingLines;
}
set hideMatchingLines(hide: boolean) {
this.hideMatchingLinesChanged(hide);
}
Solution
Move the @Input()
to the setter.
get hideMatchingLines() {
return this._hideMatchingLines;
}
@Input()
set hideMatchingLines(hide: boolean) {
this.hideMatchingLinesChanged(hide);
}
any update on this? This property doesn't seem to work still...
I'm using ng9. diff text works fine, but "loading indicator" and "hideMatchingLines" doesn't work