SchemaToCode
NGX-SCHEMA-TO-CODE

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/cli

Step 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/material

Step 4

Install angular material moment adapter, for angular ^20.x.x use

npm install @angular/material-moment-adapter@20.2.14

For angular ^21.x.x use

npm install @angular/material-moment-adapter@21.2.14

For angular ^22.x.x use

npm install @angular/material-moment-adapter

Step 5

Install json-server to generate local api and test the CURD operations.

npm install json-server --save-dev

Step 6

Now add ngx-schema-to-code to the project. Do not use npm install ngx-schema-to-code

ng add ngx-schema-to-code

Step 7

Remove the unwanted code from app.html, leave only <router-outlet/> html tag.

Related Topics:

How to useJson schema