1
- < div style ="float: right; ">
1
+ < div class ="app-container ">
2
+ <!-- header -->
3
+ < div class ="app-container-header ">
4
+ < mat-toolbar color ="primary ">
5
+ < div class ="app-container-header-text ">
6
+ < span > Angular JSON Difference Checker </ span >
7
+ </ div >
8
+ </ mat-toolbar >
9
+ </ div >
10
+
11
+ <!-- body -->
12
+ < div class ="app-container-body ">
13
+ < div class ="app-container-body-github ">
14
+ < button
15
+ mat-button
16
+ onClick ="window.open('https://github.com/rawatanimesh/angular-json-diff-jdd') "
17
+ >
18
+ View on Github
19
+ < mat-icon > open_in_new</ mat-icon >
20
+ </ button >
21
+ </ div >
22
+
23
+ <!-- <div>
24
+ <button
25
+ *ngIf="!diffReport"
26
+ mat-raised-button
27
+ color="primary"
28
+ (click)="compare()"
29
+ >
30
+ Click to get comparison
31
+ </button>
32
+ </div> -->
33
+
34
+ < mat-card *ngIf ="diffReport " class ="app-container-body-diffCard ">
35
+ < mat-card-title > Difference Breakdown</ mat-card-title >
36
+ < mat-card-subtitle class ="app-container-body-diffCard-subtitle "
37
+ > A detailed report of changes between the two JSON</ mat-card-subtitle
38
+ >
39
+ < div class ="app-container-body-diffCount ">
40
+ < div class ="app-container-body-diffCount-box ">
41
+ < div class ="app-container-body-diffCount-box-label ">
42
+ Total Difference Count :
43
+ </ div >
44
+ < div class ="app-container-body-diffCount-box-count ">
45
+ {{ diffReport.totalDiffCount }}
46
+ </ div >
47
+ </ div >
48
+ < div class ="app-container-body-diffCount-box missing ">
49
+ < div class ="app-container-body-diffCount-box-label ">
50
+ Missing Properties :
51
+ </ div >
52
+ < div class ="app-container-body-diffCount-box-count ">
53
+ {{ diffReport.missingProperties }}
54
+ </ div >
55
+ </ div >
56
+ < div class ="app-container-body-diffCount-box unequal ">
57
+ < div class ="app-container-body-diffCount-box-label ">
58
+ Unequal Values :
59
+ </ div >
60
+ < div class ="app-container-body-diffCount-box-count ">
61
+ {{ diffReport.unequalValues }}
62
+ </ div >
63
+ </ div >
64
+ < div class ="app-container-body-diffCount-box incorrect ">
65
+ < div class ="app-container-body-diffCount-box-label ">
66
+ Incorrect Types :
67
+ </ div >
68
+ < div class ="app-container-body-diffCount-box-count ">
69
+ {{ diffReport.incorrectTypes }}
70
+ </ div >
71
+ </ div >
72
+ </ div >
73
+ </ mat-card >
74
+
75
+ < div class ="app-container-body-comparison ">
76
+ < app-json-comparison
77
+ [leftTree] ="sampleArray2[0] "
78
+ [rightTree] ="sampleArray2[1] "
79
+ [hideInitialStep] ="true "
80
+ [hideReport] ="true "
81
+ (differenceReport) ="differenceReport($event) "
82
+ > </ app-json-comparison >
83
+ </ div >
84
+ </ div >
85
+ </ div >
86
+
87
+ <!-- <div style="float: right">
2
88
<a href="https://github.com/rawatanimesh/angular-json-diff-jdd">
3
- < button >
4
- Source Code
5
- </ button >
89
+ <button>Source Code</button>
6
90
</a>
7
- </ div >
8
- < div *ngIf ="diffReport ">
9
- < h3 >
10
- Difference Report :-
11
- </ h3 >
91
+ </div> -->
92
+ <!-- <div *ngIf="diffReport">
93
+ <h3>Difference Report :-</h3>
12
94
<ul>
13
- < li > Total Diff Count : {{diffReport.totalDiffCount}}</ li >
14
- < li > Missing Properties : {{diffReport.missingProperties}}</ li >
15
- < li > Unequal Values : {{diffReport.unequalValues}}</ li >
16
- < li > Incorrect Types : {{diffReport.incorrectTypes}}</ li >
95
+ <li>Total Diff Count : {{ diffReport.totalDiffCount }}</li>
96
+ <li>Missing Properties : {{ diffReport.missingProperties }}</li>
97
+ <li>Unequal Values : {{ diffReport.unequalValues }}</li>
98
+ <li>Incorrect Types : {{ diffReport.incorrectTypes }}</li>
17
99
</ul>
18
- </ div >
19
- < app-json-comparison
20
- [leftTree] ="sampleArray2[0] "
21
- [rightTree] ="sampleArray2[1] "
22
- [hideInitialStep] ="true "
23
- [hideReport] ="true "
24
- (differenceReport) ="differenceReport($event) "
25
- > </ app-json-comparison >
26
- < button *ngIf ="!diffReport " (click) ="compare() "> Compare</ button >
100
+ </div> -->
101
+
102
+ <!-- <button *ngIf="!diffReport" (click)="compare()">Compare</button> -->
0 commit comments