Providing Dependencies with NgModule in Angular
While it’s interesting to see how an injector is created directly, that isn’t the typical way we’d use injections. Instead, what we’d normally do is 1) use NgModule to register what we’ll inject – these are called providers 2) use decorators (generally on a constructor) to specify what we’re injecting By doing these two steps Angular …