ass="token punctuation">{</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span aria-hidden="true" class="line-numbers-rows"><a href="#C2_L1" id=C2_L1></a><a href="#C2_L2" id=C2_L2></a><a href="#C2_L3" id=C2_L3></a><a href="#C2_L4" id=C2_L4></a></span></code></pre></div>
<p>Like any Ember object, a service is initialized and can have properties and methods of its own.
Below, the shopping cart service manages an items array that 