Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Injectable } from '@angular/core';
import { ApiService } from 'app/api.service';
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
You can’t perform that action at this time.