File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 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
4752private co ! : CompareObject ;
4853form : FormGroup ;
49- private @Input () id : string ;
54+ @Input () id : string ;
5055
5156ngOnInit (){
5257 if (this .id ){
@@ -74,6 +79,7 @@ private initForm(user: IUser){
7479}
7580
7681hasChanges (): boolean {
82+ if (! this .co ) return ;
7783 const form = this .form .value ();
7884 return ! this .co .isSame (form );
7985}
You can’t perform that action at this time.
0 commit comments