UNPKG

ng-diff-match-patch-att

Version:

A Diff-Match-Patch component for your Angular 6+ applications

14 lines (13 loc) 432 B
import { ElementRef, OnInit, OnChanges } from '@angular/core'; import { DiffMatchPatchService } from './diffMatchPatch.service'; export declare class DiffDirective implements OnInit, OnChanges { private el; private dmp; left: string; right: string; constructor(el: ElementRef, dmp: DiffMatchPatchService); ngOnInit(): void; ngOnChanges(): void; private updateHtml(); private createHtml(diffs); }