Created
January 3, 2018 20:35
-
-
Save NetanelBasal/9c3399c153596e88508c612db00369e3 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 {Inject, Injectable, InjectionToken} from '@angular/core'; | |
export const END_POINTS = new InjectionToken('END_POINTS'); | |
@Injectable() | |
export class API { | |
private readonly _baseUrl = environment.BASE_URL; | |
endPoints: EndPoints; | |
constructor(@Inject(END_POINTS) private _endPoints) { } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment