when an initializer conditionally registers a service.
Since normal injection will throw an error if the service doesn't exist,
you must look up the service using Ember's <a href="https://api.emberjs.com/ember/2.16/classes/@ember%2Fapplication/methods/getOwner?anchor=getOwner"><code>getOwner</code></a> instead.</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"><