<a href="#C4_L7" id=C4_L7></a></span></code></pre></div>
<p>Another way to inject a service is to provide the name of the service as the argument.</p>
<div class="filename javascript"><div class="ribbon"></div><span>app/components/cart-contents.js</span><pre class="language-javascript line-numbers"><code class="javascript language-javascript"><span class="token keyword">import</span> Component <span class="token keyword">from</span> <span class="token string">'@ember/component'</span><span class="token punc