Angular InjectionToken Feature

In this article, I want to talk about a feature which Angular provides, that isn’t particularly well known or used by many developers. When using Angular InjectionToken, we can specify a factory function which returns a default value of the parameterized type T. For example: This sets up the InjectionToken using this factory as a provider, as if it was defined […]

Read more