Open djorg83 opened 4 years ago
When passing hideMatchingLines=true, the unmatched lines still show.
hideMatchingLines=true
<td-ngx-text-diff [left]="leftText" [right]="rightText" [hideMatchingLines]="true"></td-ngx-text-diff>
The @Input() should be on the setter, not the getter.
@Input()
@Input() get hideMatchingLines() { return this._hideMatchingLines; } set hideMatchingLines(hide: boolean) { this.hideMatchingLinesChanged(hide); }
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
When passing
hideMatchingLines=true
, the unmatched lines still show.Example
Cause
The
@Input()
should be on the setter, not the getter.Solution
Move the
@Input()
to the setter.