Aug 31, 2018 · 1 min read
InjectionToken
Indeed, it was related to another article : https://medium.com/b2expand/create-a-decentralized-ethereum-application-with-angular-43cf02451fbe
It’s the InjectionToken, and it looks like that :
export const WEB3 = new InjectionToken<Web3>(‘web3’);You define it in the module, and add it in the providers section with a useFactory.
I’ll edit my gists, thanks!
