diff --git a/src/app/app.component.ts b/src/app/app.component.ts index a3ea350..c6918ac 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -10,8 +10,37 @@ import { Component } from '@angular/core'; imports: [InlineDiffComponent], }) export class AppComponent { - public oldText = 'apples\noranges\nkiwis\ncarrots\n'; - public newText = 'apples\npears\nkiwis\ngrapefruit\ncarrots\n'; + public oldText = `apples +oranges +common text +common text +common text +common text +common text +common text +common text +common text +common text +common text +kiwis +carrots +`; + public newText = `apples +pears +common text +common text +common text +common text +common text +common text +common text +common text +common text +common text +kiwis +grapefruit +carrots +`; public selectedLineChange(event: unknown): void { console.log(event); diff --git a/tsconfig.json b/tsconfig.json index a3935bd..ef9c19d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,24 +14,13 @@ "noImplicitThis": true, "noUnusedLocals": true, "noUnusedParameters": true, - "strictBindCallApply": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "strictPropertyInitialization": true, + "strict": true, "importHelpers": true, "target": "ES2022", - "typeRoots": [ - "node_modules/@types" - ], - "lib": [ - "es2018", - "dom" - ], + "typeRoots": ["node_modules/@types"], + "lib": ["es2018", "dom"], "paths": { - "ngx-diff": [ - "dist/ngx-diff/ngx-diff", - "dist/ngx-diff" - ] + "ngx-diff": ["dist/ngx-diff/ngx-diff", "dist/ngx-diff"] }, "useDefineForClassFields": false },