110. Injecting the Logging Service into Components
6:21
2 & Kefluniañ
2 Pennadoù
144 reizhennoù
& Kefluniañ
Pennadoù
-
0:02Pennad 1: In the last lecture we created our service and I told you to not instantiate it on your own. 302s · Speaker 1
In the last lecture we created our service and I told you to not instantiate it on your own. I told you that Angular offers some great tool which will give us access to our services. It's Angular's dependency injector. What is a dependency …
-
5:05
TypeScript needs to know where this logging service comes from. Not Angular, TypeScript. And I will also add my provider, of course, because for this component too, I need to inform Angular how to create this logging service. So if we do th…