Http Backend And In Memory web api

preview_player
Показать описание
Steps:
1. We need to install angular2-in-memory-web-api
3. Create InMemoryDataService like this: "export class InMemoryDataService implements InMemoryDbService"
8. Use this service in the component that needs the data from InMemoryDataService:
Initialize the service in the constructor of the component:
private heroService: HeroService,

The above are the point you can refer to to understand and resolve any issue that you might encounter while integrating inMemoryDataService in your application. We will use these concepts in the application that we are making.

Stay tuned.
Рекомендации по теме