<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dependency Injection on AI VOID</title><link>https://ai-blog.noorshomelab.dev/categories/dependency-injection/</link><description>Recent content in Dependency Injection on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 25 Oct 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/categories/dependency-injection/index.xml" rel="self" type="application/rss+xml"/><item><title>Advanced Injection-JS Features</title><link>https://ai-blog.noorshomelab.dev/injection-js-guide-chapters/advanced-injection-js-features/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/injection-js-guide-chapters/advanced-injection-js-features/</guid><description>&lt;h2 id="4-advanced-injection-js-features"&gt;4. Advanced Injection-JS Features&lt;/h2&gt;
&lt;p&gt;You&amp;rsquo;ve mastered the fundamentals and hierarchies. Now, let&amp;rsquo;s explore some of the more advanced features of Injection-JS that allow for highly flexible and powerful dependency management in complex applications.&lt;/p&gt;
&lt;h3 id="multi-providers-multi-true"&gt;Multi-Providers (&lt;code&gt;multi: true&lt;/code&gt;)&lt;/h3&gt;
&lt;p&gt;Sometimes, you don&amp;rsquo;t want to provide a single instance of a service, but rather &lt;em&gt;multiple&lt;/em&gt; instances or values associated with a single injection token. This is where multi-providers come in handy. When &lt;code&gt;multi: true&lt;/code&gt; is used in a provider, instead of replacing previous definitions for that token, it &lt;em&gt;adds&lt;/em&gt; to a collection. When the token is resolved, you get an array of all registered values.&lt;/p&gt;</description></item><item><title>Further Learning and Resources for Injection-JS</title><link>https://ai-blog.noorshomelab.dev/injection-js-guide-chapters/further-learning-and-resources/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/injection-js-guide-chapters/further-learning-and-resources/</guid><description>&lt;h2 id="8-further-learning-and-resources"&gt;8. Further Learning and Resources&lt;/h2&gt;
&lt;p&gt;Congratulations on completing this comprehensive guide to Injection-JS! You&amp;rsquo;ve covered everything from foundational concepts to advanced patterns and practical projects. The journey of learning, however, never truly ends. To continue deepening your expertise in Injection-JS, Dependency Injection, and related software architecture principles, here&amp;rsquo;s a curated list of recommended resources.&lt;/p&gt;
&lt;h3 id="official-documentation"&gt;Official Documentation&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Injection-JS GitHub Repository&lt;/strong&gt;: The primary source for the library itself. While extensive documentation like Angular&amp;rsquo;s is not maintained directly for &lt;code&gt;injection-js&lt;/code&gt;, its codebase and &lt;code&gt;README.md&lt;/code&gt; are invaluable.&lt;/p&gt;</description></item><item><title>Working with Injectors and Hierarchies in Injection-JS</title><link>https://ai-blog.noorshomelab.dev/injection-js-guide-chapters/working-with-injectors-and-hierarchies/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/injection-js-guide-chapters/working-with-injectors-and-hierarchies/</guid><description>&lt;h2 id="3-working-with-injectors-and-hierarchies"&gt;3. Working with Injectors and Hierarchies&lt;/h2&gt;
&lt;p&gt;In the previous chapter, we learned about services, providers, and how to create a basic injector. Now, let&amp;rsquo;s dive deeper into how &lt;code&gt;ReflectiveInjector&lt;/code&gt; resolves dependencies and, more importantly, how to build sophisticated &lt;strong&gt;injector hierarchies&lt;/strong&gt; to manage dependencies in large, modular applications.&lt;/p&gt;
&lt;h3 id="the-role-of-reflectiveinjector"&gt;The Role of &lt;code&gt;ReflectiveInjector&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;The &lt;code&gt;ReflectiveInjector&lt;/code&gt; is the central component that &lt;code&gt;injection-js&lt;/code&gt; uses to resolve dependencies. When you call &lt;code&gt;injector.get(SomeToken)&lt;/code&gt;, it performs the following steps:&lt;/p&gt;</description></item></channel></rss>