Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { Injectable } from '@angular/core';
import { ApiService } from 'app/api.service';
@Injectable()
export class FakeApiService implements ApiService {
// Using implements to be sure FakeApiService has the same
// methods as original ApiService
constructor() { }
serviceCall() {
console.log('I am FAKE api service instance call!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment