Skip to content

Instantly share code, notes, and snippets.

@4skinSkywalker
Created March 28, 2019 10:11
Show Gist options
  • Save 4skinSkywalker/dad602d161bd0ac243c94a86c4d640b3 to your computer and use it in GitHub Desktop.
Save 4skinSkywalker/dad602d161bd0ac243c94a86c4d640b3 to your computer and use it in GitHub Desktop.
import { HttpClientModule } from '@angular/common/http'
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'
import { MyInMemoryService } from './services/my-in-memory.service'
@NgModule({
imports: [
HttpClientModule,
// import HttpClientInMemoryWebApiModule after HttpClientModule
HttpClientInMemoryWebApiModule.forRoot(MyInMemoryService)
]
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment