Skip to content

Commit e0d7d24

Browse files
committed
upd README.md
1 parent 1a610c1 commit e0d7d24

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
# NgxCompareObject [![npm version](https://badge.fury.io/js/ngx-compare-object.svg)](https://badge.fury.io/js/ngx-cam-shoot) [![Build Status](https://api.travis-ci.com/rzodev/ngx-compare-object.svg?branch=main)](https://app.travis-ci.com/github/rzodev/ngx-compare-object) [![Support](https://img.shields.io/badge/Support-Angular%2018%2B-blue.svg?style=flat-square)]() [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/RzoDev/ngx-compare-object/blob/main/LICENSE.md)
1+
# NgxCompareObject [![npm version](https://badge.fury.io/js/ngx-compare-object.svg)](https://badge.fury.io/js/ngx-cam-shoot) [![Build Status](https://api.travis-ci.com/rzodev/ngx-compare-object.svg?branch=main)](https://app.travis-ci.com/github/rzodev/ngx-compare-object) [![Support](https://img.shields.io/badge/Support-Angular%2019%2B-blue.svg?style=flat-square)]() [![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/RzoDev/ngx-compare-object/blob/main/LICENSE.md)
2+
3+
An Angular Class tool to compare an initial object with another modified version of itself.
4+
5+
## Prerequisites
6+
7+
- Angular: `>=19.2.0`
28

3-
An Angular Class tool to compare an initial object with another modified version of itself.
49

510
## Usage
611

@@ -46,7 +51,7 @@ private route = inject(ActivatedRoute);
4651

4752
private co!: CompareObject;
4853
form: FormGroup;
49-
private @Input() id: string;
54+
@Input() id: string;
5055

5156
ngOnInit(){
5257
if(this.id){
@@ -74,6 +79,7 @@ private initForm(user: IUser){
7479
}
7580

7681
hasChanges(): boolean{
82+
if(!this.co) return;
7783
const form = this.form.value();
7884
return !this.co.isSame(form);
7985
}

0 commit comments

Comments
 (0)