Skip to content

Instantly share code, notes, and snippets.

@kobvel
Created January 28, 2018 21:06
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/286be4c82333c9b25cb6889e81799e39 to your computer and use it in GitHub Desktop.
Save kobvel/286be4c82333c9b25cb6889e81799e39 to your computer and use it in GitHub Desktop.
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