ollowing command will create the <code>ShoppingCart</code> service:</p>
<pre class="language-bash line-numbers"><code class="bash language-bash">ember generate <span class="token function">service</span> shopping-cart
<span aria-hidden="true" class="line-numbers-rows"><a href="#C1_L1" id=C1_L1></a></span></code></pre>
<p>Services must extend the <a href="https://api.emberjs.com/ember/3.22.0/classes/Service"><code>Service</code></a> base class:</p>
<div class="filename javascript"><div class="ribbon"></div><