We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dd9b2b commit e4a5ecfCopy full SHA for e4a5ecf
projects/demo/src/app/app.component.ts
@@ -1,4 +1,5 @@
1
import { Component } from '@angular/core';
2
+import { DiffStyle, DiffFormat } from 'ngx-diff2html/ngx-diff2html';
3
4
@Component({
5
selector: 'app-root',
@@ -20,8 +21,8 @@ export class AppComponent {
20
21
"car3": "Fiat"
22
}
23
}`;
- diffStyle: 'word' | 'char' = 'word';
24
- outputFormat: 'side-by-side' | 'line-by-line' = 'line-by-line';
+ diffStyle: DiffStyle = 'word';
25
+ outputFormat: DiffFormat = 'line-by-line';
26
27
onDiffChange(diff: string) {
28
console.log(diff);
0 commit comments