npm install json-server -g
json-server --watch db.json
//to introduce delay artifically 2 sec
json-server --watch db.json -d 2000
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.