Created
January 28, 2018 21:06
-
-
Save kobvel/286be4c82333c9b25cb6889e81799e39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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