Injectorobject. Angular simplifies DI even further. With Angular, programmers almost never have to get bogged down with injection details.
@NgModule. Specifically the
declarationsis where we put components, pipes and directives;
providersis where we put services)
AppModuleis told about the
ChatWidgetclass. Another way of saying this is that Angular has been provided a
ChatWidget. What if
ChatWidgetwas a string, or a plain function?
ChatSocket? How is
ChatWidgetis being told about its dependencies. Perhaps that is related to those odd