Skip to content

Commit e4a5ecf

Browse files
committed
Update demo app
1 parent 6dd9b2b commit e4a5ecf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

projects/demo/src/app/app.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Component } from '@angular/core';
2+
import { DiffStyle, DiffFormat } from 'ngx-diff2html/ngx-diff2html';
23

34
@Component({
45
selector: 'app-root',
@@ -20,8 +21,8 @@ export class AppComponent {
2021
"car3": "Fiat"
2122
}
2223
}`;
23-
diffStyle: 'word' | 'char' = 'word';
24-
outputFormat: 'side-by-side' | 'line-by-line' = 'line-by-line';
24+
diffStyle: DiffStyle = 'word';
25+
outputFormat: DiffFormat = 'line-by-line';
2526

2627
onDiffChange(diff: string) {
2728
console.log(diff);

0 commit comments

Comments
 (0)