What is Angular 2 RC angular2-in-memory-web-api? -


what angular2-in-memory-web-api? i've seen references in angular.io documentation code seems work without it.

it's used demos only:

for example get heroes scenario work without webapi, loading demo data json file, want save data too. can't save changes json file. need web api server.

the in-memory web api not part of angular core. it's optional service in own angular2-in-memory-web-api library installed npm (see package.json) , registered module loading systemjs (see systemjs.config.js)

the in-memory web api gets data custom application class createdb() method returns map keys collection names , values arrays of objects in collections.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -