110. Injecting the Logging Service into Components
6:21
2 ஒலிப்பேழைகள்
2 அத்தியாயங்கள்
144 துண்டுகள்
ஒலிப்பேழைகள்
அத்தியாயங்கள்
-
0:02அத்தியாயம் 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…