Created
March 28, 2019 10:11
-
-
Save 4skinSkywalker/dad602d161bd0ac243c94a86c4d640b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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