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
Post a Comment