Skip to content

Instantly share code, notes, and snippets.

@kobvel
Created January 28, 2018 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kobvel/6f9a0221407daacca5c6ee5a5cee4c8d to your computer and use it in GitHub Desktop.
Save kobvel/6f9a0221407daacca5c6ee5a5cee4c8d to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { ApiService } from 'app/api.service';
import { FakeApiService } from './fake-api.service';
@NgModule({
declarations: [AppComponent],
imports: [BrowserModule],
providers: [
{ provide: ApiService, useClass: FakeApiService }
],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment