Closed nicojs closed 5 years ago
Add the ability to override a token. Previously this resulted in a stack overflow error when resolving the token.
const answerProvider = rootInjector .provideValue('answer', 42) .provideValue('answer', '42'); expect(answerProvider.resolve('answer')).eq('42'); expect(typeof answerProvider.resolve('answer')).eq('string');
With this functionality in place, it is now also possible to add decorators to existing dependencies. See readme for more info.
Add the ability to override a token. Previously this resulted in a stack overflow error when resolving the token.
With this functionality in place, it is now also possible to add decorators to existing dependencies. See readme for more info.