8-59.26 59.28-155.7 0-214.96z"/>
      </svg></a> </h3>
<section aria-labelledby="toc_ad-hoc-injections">
<p>Dependency injections can also be declared directly on Ember classes using
<code>Ember.inject</code>. Currently, <code>Ember.inject</code> supports injecting controllers (via
<code>Ember.inject.controller</code>) and services (via <code>Ember.inject.service</code>).</p>
<p>The following code injects the <code>shopping-cart</code> service on the <code>cart-contents</code>
component as the property <co