Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created March 20, 2018 19:07
Show Gist options
  • Save alexzuza/987af2df3abb5a9e2f5ec1ece6b556dc to your computer and use it in GitHub Desktop.
Save alexzuza/987af2df3abb5a9e2f5ec1ece6b556dc to your computer and use it in GitHub Desktop.
DI injection token new api example
export const apiUrl = new InjectionToken('tree-shakeable apiUrl token', {
providedIn: 'root',
factory: () => 'someUrl'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment