Installation
You need to install angular cli, angular material, material moment adapter, json-server and finally add ngx-schema-to-code. Please go through following steps to installation. If you installing it on existing angular application, ignore the steps which you have already done.
Step 1
Install an angular cli globally.
npm install -g @angular/cliStep 2
Create an angular project.
ng new <project-name>Step 3
Go to <project-name> folder.
cd <project-name>Install an angular material.
ng add @angular/materialStep 4
Install angular material moment adapter, for angular ^20.x.x use
npm install @angular/material-moment-adapter@20.2.14For angular ^21.x.x use
npm install @angular/material-moment-adapter@21.2.14For angular ^22.x.x use
npm install @angular/material-moment-adapterStep 5
Install json-server to generate local api and test the CURD operations.
npm install json-server --save-devStep 6
Now add ngx-schema-to-code to the project. Do not use npm install ngx-schema-to-code
ng add ngx-schema-to-codeStep 7
Remove the unwanted code from app.html, leave only <router-outlet/> html tag.