Author: | ABenassi87 |
---|---|
Official Page: | Go to website |
Publish Date: | November 19, 2019 |
License: | MIT |
Description:
ngx-text-diff is a text diff tool used for comparing the difference between strings you provide.
Supports both side by side and line by line text comparison.
Based on Google’s diff-match-patch library.
How to use it:
1. Install and import the module.
# NPM $ npm install ngx-text-diff --save
2. Register the ngx-text-diff module.
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { NgxTextDiffModule } from 'ngx-text-diff'; @NgModule({ declarations: [AppComponent], imports: [BrowserModule, NgxTextDiffModule], providers: [], bootstrap: [AppComponent] }) export class AppModule {}