Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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';
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