UNPKG

ng-diff-match-patch

Version:

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

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