Diff viewer
A line-by-line text diff.
config.ts
| const x = 1; | |
| - | const y = 2; |
| - | console.log(x); |
| + | const y = 3; |
| + | console.log(x + y); |
Without filename
| const x = 1; | |
| - | const y = 2; |
| - | console.log(x); |
| + | const y = 3; |
| + | console.log(x + y); |
API reference
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
before | string | '' | Original text; lines removed relative to `after` are marked deleted. |
after | string | '' | Updated text; lines added relative to `before` are marked added. |
filename | string | '' | Optional filename shown in the header above the diff. |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.