Created
March 20, 2018 19:07
-
-
Save alexzuza/987af2df3abb5a9e2f5ec1ece6b556dc to your computer and use it in GitHub Desktop.
DI injection token new api example
This file contains hidden or 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
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