Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Created January 3, 2018 20:35
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 NetanelBasal/9c3399c153596e88508c612db00369e3 to your computer and use it in GitHub Desktop.
Save NetanelBasal/9c3399c153596e88508c612db00369e3 to your computer and use it in GitHub Desktop.
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