Skip to content

Commit

Permalink
docs(data): add HttpClientModule to @ngrx/data module setup(#2238)
Browse files Browse the repository at this point in the history
Closes #2220
  • Loading branch information
jhcao23 authored and brandonroberts committed Nov 9, 2019
1 parent de9a590 commit 90d0602
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions projects/ngrx.io/content/guide/data/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,15 @@ Once the entity configuration is created, you need to put it into the root store

<code-example header="app.module.ts">
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { EffectsModule } from '@ngrx/effects';
import { StoreModule } from '@ngrx/store';
import { DefaultDataServiceConfig, EntityDataModule } from '@ngrx/data';
import { entityConfig } from './entity-metadata';

@NgModule({
imports: [
HttpClientModule,
StoreModule.forRoot({}),
EffectsModule.forRoot([]),
EntityDataModule.forRoot(entityConfig)
Expand Down

0 comments on commit 90d0602

Please sign in to comment.