You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12
+
## Adding the component in your project
13
+
```
14
+
1) Add the 'jdd' javascript files in your asset folder. You can copy it ffrom this project from 'assets/jdd-files'.
15
+
2) Copy 'json-comparison' component from here to your project. Import it in your module.
16
+
3) Add the 'app-json-comparison' html template in your parent component to get output and input as well as json differences.
17
+
4) In your parent component add click on button with id 'compare' to get your results.
18
+
5) You can send true or false based on your requirement and show/hide things like difference report.
19
+
6) The output 'differenceReport' gives a detailed report on changes in JSON format which you can use for your purpose.
20
+
```
12
21
13
-
## Build
22
+
## Author
14
23
15
-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
16
-
17
-
## Running unit tests
18
-
19
-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20
-
21
-
## Running end-to-end tests
22
-
23
-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24
-
25
-
## Further help
26
-
27
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
0 commit comments